| 1 |
@import 'variables.less'; |
| 2 |
|
| 3 |
// Single-column layout with dropdown menus |
| 4 |
|
| 5 |
#mw-content-block { |
| 6 |
padding: 0; |
| 7 |
position: relative; |
| 8 |
// In case of high resolution usage |
| 9 |
max-width: @content-width - @column-left-size - @column-right-size; |
| 10 |
} |
| 11 |
|
| 12 |
.ts-inner { |
| 13 |
max-width: @content-width - @column-left-size - @column-right-size; |
| 14 |
} |
| 15 |
|
| 16 |
#mw-content { |
| 17 |
border-width: 0 0 1px; |
| 18 |
clear: both; |
| 19 |
margin-top: 5.425em; |
| 20 |
} |
| 21 |
|
| 22 |
#mw-content-container { |
| 23 |
padding-bottom: 0; |
| 24 |
} |
| 25 |
|
| 26 |
.categories-bottom(); |
| 27 |
|
| 28 |
#mw-data-after-content { |
| 29 |
padding: 0 @content-padding; |
| 30 |
} |
| 31 |
|
| 32 |
// Header navigation |
| 33 |
|
| 34 |
.sidebar-chunk { |
| 35 |
display: inline-block; |
| 36 |
position: relative; |
| 37 |
|
| 38 |
h2 { |
| 39 |
display: inline-block; |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
.sidebar-inner, |
| 44 |
#p-logo { |
| 45 |
display: none !important; |
| 46 |
} |
| 47 |
|
| 48 |
.color-right, |
| 49 |
.color-middle { |
| 50 |
background: @red-dark; |
| 51 |
} |
| 52 |
|
| 53 |
// Have these cover the fixed header color-bar using the mw-header-nav-hack (with its own color-bar at the bottom) |
| 54 |
#mw-site-navigation, |
| 55 |
#mw-related-navigation { |
| 56 |
display: inline-block; |
| 57 |
position: relative; |
| 58 |
z-index: ( @z-index-fixed - 1 ); |
| 59 |
|
| 60 |
h2 { |
| 61 |
font-weight: normal; |
| 62 |
font-family: @fonts-secondary; |
| 63 |
font-size: 1.25em; |
| 64 |
padding: 0.5em 0 0.2em; |
| 65 |
margin: 0; |
| 66 |
|
| 67 |
.dropdown-header(); |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
.client-nojs .sidebar-chunk:hover { |
| 72 |
.sidebar-inner { |
| 73 |
display: block !important; |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
#mw-header-nav-hack { |
| 78 |
border-top: solid 2px @base80; |
| 79 |
display: block; |
| 80 |
position: absolute; |
| 81 |
z-index: ( @z-index-fixed - 2 ); |
| 82 |
background: @background; |
| 83 |
width: 100%; |
| 84 |
} |
| 85 |
|
| 86 |
#mw-header-nav-hack .color-bar { |
| 87 |
margin-top: 2.5em; // Height of expected menu header contents |
| 88 |
} |
| 89 |
|
| 90 |
#mw-site-navigation { |
| 91 |
position: absolute; |
| 92 |
top: -2.35em; |
| 93 |
left: 2em; |
| 94 |
|
| 95 |
.sidebar-chunk { |
| 96 |
margin: 0 1em 0 0; |
| 97 |
} |
| 98 |
|
| 99 |
.sidebar-inner { |
| 100 |
.dropdown-menu( left ); |
| 101 |
} |
| 102 |
} |
| 103 |
|
| 104 |
#mw-site-navigation .sidebar-chunk h2 span { |
| 105 |
.dropdown-pokey(); |
| 106 |
|
| 107 |
&::before, |
| 108 |
&::after { |
| 109 |
right: 1px; |
| 110 |
display: none; |
| 111 |
} |
| 112 |
|
| 113 |
&::before { |
| 114 |
top: 34px; |
| 115 |
} |
| 116 |
|
| 117 |
&::after { |
| 118 |
top: 36px; |
| 119 |
} |
| 120 |
} |
| 121 |
|
| 122 |
#mw-site-navigation .dropdown-active, |
| 123 |
.client-nojs #mw-site-navigation .sidebar-chunk:hover { |
| 124 |
h2 span { |
| 125 |
&::before, |
| 126 |
&::after { |
| 127 |
display: block; |
| 128 |
} |
| 129 |
} |
| 130 |
} |
| 131 |
|
| 132 |
#mw-related-navigation { |
| 133 |
position: absolute; |
| 134 |
top: -2.35em; |
| 135 |
right: 2em; |
| 136 |
|
| 137 |
.sidebar-chunk { |
| 138 |
margin: 0 0 0 1em; |
| 139 |
} |
| 140 |
|
| 141 |
.sidebar-inner { |
| 142 |
.dropdown-menu(); |
| 143 |
.dropdown-pokey(); |
| 144 |
top: 2.95em !important; // to override mobile positioning |
| 145 |
} |
| 146 |
} |
| 147 |
|
| 148 |
// Consistency |
| 149 |
|
| 150 |
#mw-header { |
| 151 |
padding: 0 2em; |
| 152 |
} |
| 153 |
|
| 154 |
#p-logo-text a { |
| 155 |
padding-left: 0; |
| 156 |
padding-right: 0.5em; |
| 157 |
} |
| 158 |
|
| 159 |
#mw-footer { |
| 160 |
padding-left: @content-padding; |
| 161 |
padding-right: @content-padding; |
| 162 |
} |
| 163 |
|
| 164 |
// Personal menu |
| 165 |
|
| 166 |
#personal { |
| 167 |
float: right; |
| 168 |
|
| 169 |
h2 span { |
| 170 |
max-width: 130px; |
| 171 |
} |
| 172 |
|
| 173 |
.dropdown { |
| 174 |
right: -1em; |
| 175 |
} |
| 176 |
} |