special.preferences.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. @import "mediawiki.mixins";
  2. @import "variables";
  3. /**
  4. * The following code is highly modified from monobook. It would be nice if the
  5. * preftoc id was more human readable like preferences-toc for instance,
  6. * howerver this would require backporting the other skins.
  7. */
  8. #preftoc {
  9. /* Tabs */
  10. width: 100%;
  11. float: left;
  12. clear: both;
  13. margin: 0 !important;
  14. padding: 0 !important;
  15. .background-image('images/preferences/break.png');
  16. background-position: bottom left;
  17. background-repeat: no-repeat;
  18. li {
  19. /* Tab */
  20. float: left;
  21. margin: 0;
  22. padding: 0;
  23. padding-right: 1px;
  24. height: 2.25em;
  25. white-space: nowrap;
  26. list-style-type: none;
  27. list-style-image: none;
  28. .background-image('images/preferences/break.png');
  29. background-position: bottom right;
  30. background-repeat: no-repeat;
  31. /* Sadly, IE6 won't understand this */
  32. &:first-child {
  33. margin-left: 1px;
  34. }
  35. &.selected {
  36. a {
  37. .background-image('images/preferences/fade.png');
  38. background-position: bottom;
  39. background-repeat: repeat-x;
  40. color: #333;
  41. text-decoration: none;
  42. }
  43. }
  44. }
  45. a,
  46. a:active {
  47. display: inline-block;
  48. position: relative;
  49. color: @menu-link-color;
  50. padding: 0.5em;
  51. text-decoration: none;
  52. background-image: none;
  53. font-size: 0.9em;
  54. }
  55. a:hover,
  56. a:focus {
  57. text-decoration: underline;
  58. }
  59. }
  60. #preferences {
  61. float: left;
  62. width: 100%;
  63. margin: 0;
  64. margin-top: -2px;
  65. clear: both;
  66. border: solid 1px #ccc;
  67. background-color: #fafafa;
  68. fieldset {
  69. border: none;
  70. border-top: solid 1px #ccc;
  71. &.prefsection {
  72. border: none;
  73. padding: 0;
  74. margin: 1em;
  75. legend.mainLegend {
  76. display: none;
  77. }
  78. }
  79. }
  80. legend {
  81. color: #666;
  82. }
  83. td {
  84. padding-left: 0.5em;
  85. padding-right: 0.5em;
  86. }
  87. div.mw-prefs-buttons {
  88. padding: 1em;
  89. input {
  90. margin-right: 0.25em;
  91. }
  92. }
  93. }
  94. .htmlform-tip {
  95. font-size: x-small;
  96. padding: .2em 2em;
  97. color: #666;
  98. }