headers.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  1. /* ----------------------------------
  2. * HEADERS: default
  3. * ---------------------------------- */
  4. section[role="region"] > header:first-child {
  5. position: relative;
  6. z-index: 10;
  7. padding: 0;
  8. height: 5rem;
  9. color: #fff;
  10. background-color: #F97C17;
  11. border: none;
  12. }
  13. section[role="region"] > header:first-child h1 {
  14. font-size: 2.5rem;
  15. line-height: 5rem;
  16. text-align: left;
  17. color: #fff;
  18. white-space: nowrap;
  19. text-overflow: ellipsis;
  20. display: block;
  21. overflow: hidden;
  22. margin: 0;
  23. padding: 0 1rem 0 3rem;
  24. height: 100%;
  25. font-weight: lighter;
  26. }
  27. section[role="region"] > header:first-child h1 em {
  28. font-weight: 400;
  29. font-size: 1.5rem;
  30. line-height: 1em;
  31. font-style: normal;
  32. }
  33. section[role="region"] > header:first-child form {
  34. display: block;
  35. overflow: hidden;
  36. position: relative;
  37. padding: 1rem 1rem 0 0.5rem ;
  38. margin-left: 3.5rem;
  39. }
  40. section[role="region"] > header:first-child input[type="text"] {
  41. width: 100%;
  42. height: 3rem;
  43. -moz-box-sizing: border-box;
  44. padding: 0 0.8rem;
  45. border: solid 0.1rem #9d4123;
  46. border-top-color: #a6501e;
  47. border-radius: 0;
  48. background: #fff;
  49. font-size: 1.5rem;
  50. line-height: 3em;
  51. box-shadow: none;
  52. }
  53. section[role="region"] > header:first-child form button[type="reset"] {
  54. font-size: 0;
  55. overflow: hidden;
  56. position: absolute;
  57. right: 1rem;
  58. top: 1rem;
  59. bottom: 0;
  60. width: 3rem;
  61. height: auto;
  62. margin: 0;
  63. display: none;
  64. border: none;
  65. background: url(headers/images/icons/clear.png) no-repeat center center / 1.7rem auto;
  66. }
  67. section[role="region"] > header:first-child input[type="text"]:valid + button[type="reset"] {
  68. display: block;
  69. }
  70. /* Generic set of actions in toolbar */
  71. section[role="region"] > header:first-child menu[type="toolbar"] {
  72. height: 100%;
  73. float: right;
  74. }
  75. section[role="region"] > header:first-child menu[type="toolbar"] a,
  76. section[role="region"] > header:first-child menu[type="toolbar"] button {
  77. -moz-box-sizing: border-box;
  78. position: relative;
  79. float: left;
  80. width: auto;
  81. min-width: 5rem;
  82. height: 5rem;
  83. margin-bottom: 0;
  84. padding: 0 1rem;
  85. border-radius: 0;
  86. line-height: 5rem;
  87. background: none;
  88. text-align: center;
  89. text-shadow: none;
  90. z-index: 5;
  91. }
  92. section[role="region"] > header:first-child menu[type="toolbar"] {
  93. padding: 0;
  94. margin: 0;
  95. }
  96. section[role="region"] > header:first-child a,
  97. section[role="region"] > header:first-child button {
  98. border: none;
  99. padding: 0;
  100. overflow: hidden;
  101. font-weight: 400;
  102. font-size: 1.5rem;
  103. line-height: 1.1em;
  104. color: rgba(0,0,0,0.6);
  105. border-radius: 0;
  106. text-decoration: none;
  107. }
  108. /* Pressed state */
  109. section[role="region"] > header:first-child a:focus {
  110. outline: none;
  111. }
  112. section[role="region"] > header:first-child button::-moz-focus-inner {
  113. outline: none;
  114. border: none;
  115. margin-top: -0.2rem; /* To fix line-height bug (697451) */
  116. padding: 0;
  117. }
  118. section[role="region"] > header:first-child > a:not([aria-disabled="true"]):active:after,
  119. section[role="region"] > header:first-child > button:not(:disabled):active:after,
  120. section[role="region"] > header:first-child > a:not([aria-disabled="true"]):hover:after,
  121. section[role="region"] > header:first-child > button:not(:disabled):hover:after,
  122. section[role="region"] > header:first-child menu[type="toolbar"] a:not([aria-disabled="true"]):hover,
  123. section[role="region"] > header:first-child menu[type="toolbar"] button:not(:disabled):hover,
  124. section[role="region"] > header:first-child menu[type="toolbar"] a:not([aria-disabled="true"]):active,
  125. section[role="region"] > header:first-child menu[type="toolbar"] button:not(:disabled):active {
  126. background-color: rgba(0,0,0,0.07);
  127. }
  128. /* Disabled state */
  129. section[role="region"] > header:first-child menu[type="toolbar"] a[aria-disabled="true"],
  130. section[role="region"] > header:first-child menu[type="toolbar"] button[disabled] {
  131. opacity: 0.3;
  132. pointer-events: none;
  133. }
  134. /* Icon definitions */
  135. section[role="region"] > header:first-child .icon {
  136. position: relative;
  137. float: none;
  138. display: inline-block;
  139. width: 3rem;
  140. height: 5rem;
  141. margin: 0 -1rem;
  142. background: transparent no-repeat center / 3rem auto;
  143. font-size: 0;
  144. overflow: hidden;
  145. }
  146. section[role="region"] > header:first-child > a .icon,
  147. section[role="region"] > header:first-child > button .icon {
  148. background-position: -0.2rem center;
  149. }
  150. section[role="region"] > header:first-child .icon.icon-add {
  151. background-image: url(headers/images/icons/add.png);
  152. }
  153. section[role="region"] > header:first-child .icon.icon-compose {
  154. background-image: url(headers/images/icons/compose.png);
  155. }
  156. section[role="region"] > header:first-child .icon.icon-edit {
  157. background-image: url(headers/images/icons/edit.png);
  158. }
  159. section[role="region"] > header:first-child .icon.icon-send {
  160. background-image: url(headers/images/icons/send.png);
  161. }
  162. section[role="region"] > header:first-child .icon.icon-close {
  163. background-image: url(headers/images/icons/close.svg);
  164. }
  165. section[role="region"] > header:first-child .icon.icon-back {
  166. background-image: url(headers/images/icons/back.svg);
  167. }
  168. section[role="region"] > header:first-child .icon.icon-menu {
  169. background-image: url(headers/images/icons/menu.svg);
  170. }
  171. section[role="region"] > header:first-child .icon.icon-user {
  172. background-image: url(headers/images/icons/user.png);
  173. }
  174. section[role="region"] > header:first-child .icon.icon-up {
  175. background-image: url(headers/images/icons/up.png);
  176. }
  177. section[role="region"] > header:first-child .icon.icon-down {
  178. background-image: url(headers/images/icons/down.png);
  179. }
  180. section[role="region"] > header:first-child .icon.icon-disabled {
  181. opacity: 0.5;
  182. }
  183. /* We need to opt out of the header separator */
  184. section[role="region"] > header:first-child menu[type="toolbar"] a.msg-down-btn {
  185. background: no-repeat left center / auto 4.8rem;
  186. }
  187. section[role="region"] > header:first-child .icon.icon-options {
  188. background-image: url(headers/images/icons/options.png);
  189. }
  190. /* Navigation links (back, cancel, etc) */
  191. section[role="region"] > header:first-child > button,
  192. section[role="region"] > header:first-child > a {
  193. position: relative;
  194. width: 5rem;
  195. height: 5rem;
  196. background: none;
  197. float: left;
  198. overflow: visible;
  199. margin: 0 -5rem 0 0;
  200. }
  201. section[role="region"] > header:first-child > button:after,
  202. section[role="region"] > header:first-child > a:after {
  203. content: "";
  204. position: absolute;
  205. left: 0;
  206. top: 0;
  207. z-index: -1;
  208. width: 2.6rem;
  209. height: 5rem;
  210. }
  211. section[role="region"] > header:first-child > button .icon,
  212. section[role="region"] > header:first-child > a .icon {
  213. display: block;
  214. margin: 0;
  215. font-size: 0;
  216. }
  217. /* ----------------------------------
  218. * HEADERS: subheader
  219. * ---------------------------------- */
  220. section[role="region"] > header {
  221. z-index: 0;
  222. height: auto;
  223. }
  224. section[role="region"] > header:after {
  225. display: none;
  226. }
  227. section[role="region"] header h2 {
  228. margin: 0;
  229. padding: 0.8rem 3rem;
  230. color: #424242;
  231. font-weight: 400;
  232. font-size: 1.5rem;
  233. line-height: 1.8rem;
  234. border-bottom: solid 0.1rem #e6e6e6;
  235. }
  236. /* ----------------------------------
  237. * HEADERS: dark
  238. * ---------------------------------- */
  239. section[role="region"].skin-dark > header:first-child,
  240. .skin-dark > section[role="region"] > header:first-child {
  241. background-color: #242D33;
  242. }
  243. section[role="region"].skin-dark > header:first-child > a:not([aria-disabled="true"]):active:after,
  244. section[role="region"].skin-dark > header:first-child > button:not(:disabled):active:after,
  245. section[role="region"].skin-dark > header:first-child > a:not([aria-disabled="true"]):hover:after,
  246. section[role="region"].skin-dark > header:first-child > button:not(:disabled):hover:after,
  247. section[role="region"].skin-dark > header:first-child menu[type="toolbar"] a:not([aria-disabled="true"]):hover,
  248. section[role="region"].skin-dark > header:first-child menu[type="toolbar"] button:not(:disabled):hover,
  249. section[role="region"].skin-dark > header:first-child menu[type="toolbar"] a:not([aria-disabled="true"]):active,
  250. section[role="region"].skin-dark > header:first-child menu[type="toolbar"] button:not(:disabled):active {
  251. background-color: rgba(0,0,0,0.4);
  252. }
  253. section[role="region"].skin-dark > header:first-child menu[type="toolbar"] a,
  254. section[role="region"].skin-dark > header:first-child menu[type="toolbar"] button {
  255. color: #00aac5;
  256. }
  257. section[role="region"].skin-dark header h2,
  258. .skin-dark > section[role="region"] header h2 {
  259. background-color: #2c353b;
  260. color: #fff;
  261. border: none;
  262. }
  263. /* ----------------------------------
  264. * HEADERS: organic
  265. * ---------------------------------- */
  266. section[role="region"].skin-organic > header:first-child,
  267. .skin-organic section[role="region"] > header:first-child {
  268. background-color: #F4F4F4;
  269. }
  270. section[role="region"].skin-organic > header:first-child h1,
  271. .skin-organic section[role="region"] > header:first-child h1 {
  272. color: #868692;
  273. }
  274. /* clear background => specific dark icons */
  275. section[role="region"].skin-organic > header:first-child .icon.icon-back,
  276. .skin-organic section[role="region"] > header:first-child .icon.icon-back {
  277. background-image: url(headers/images/icons/organic/back.svg);
  278. }
  279. section[role="region"].skin-organic > header:first-child .icon.icon-close,
  280. .skin-organic section[role="region"] > header:first-child .icon.icon-close {
  281. background-image: url(headers/images/icons/organic/close.svg);
  282. }
  283. section[role="region"].skin-organic > header:first-child .icon.icon-add,
  284. .skin-organic section[role="region"] > header:first-child .icon.icon-add {
  285. background-image: url(headers/images/icons/organic/add.png);
  286. }
  287. section[role="region"].skin-organic > header:first-child .icon.icon-edit,
  288. .skin-organic section[role="region"] > header:first-child .icon.icon-edit {
  289. background-image: url(headers/images/icons/organic/edit.png);
  290. }
  291. section[role="region"].skin-organic header h2,
  292. .skin-organic section[role="region"] header h2 {
  293. background-color: #e7e7e7;
  294. color: #4D4D4D;
  295. border: none;
  296. }
  297. section[role="region"].skin-organic > header:first-child a,
  298. .skin-organic section[role="region"] > header:first-child a,
  299. section[role="region"].skin-organic > header:first-child button,
  300. .skin-organic section[role="region"] > header:first-child button {
  301. color: #00aac5;
  302. }
  303. /* ----------------------------------
  304. * HEADERS: comms
  305. * ---------------------------------- */
  306. .skin-comms section[role="region"] > header:first-child {
  307. background-color: #33cccc;
  308. }
  309. .skin-comms section[role="region"] > header:first-child > a:not([aria-disabled="true"]):active:after,
  310. .skin-comms section[role="region"] > header:first-child > button:not(:disabled):active:after,
  311. .skin-comms section[role="region"] > header:first-child > a:not([aria-disabled="true"]):hover:after,
  312. .skin-comms section[role="region"] > header:first-child > button:not(:disabled):hover:after,
  313. .skin-comms section[role="region"] > header:first-child menu[type="toolbar"] a:not([aria-disabled="true"]):hover,
  314. .skin-comms section[role="region"] > header:first-child menu[type="toolbar"] button:not(:disabled):hover,
  315. .skin-comms section[role="region"] > header:first-child menu[type="toolbar"] a:not([aria-disabled="true"]):active,
  316. .skin-comms section[role="region"] > header:first-child menu[type="toolbar"] button:not(:disabled):active {
  317. background-color: rgba(0,0,0,0.1);
  318. }
  319. .skin-comms section[role="region"] > header:first-child menu[type="toolbar"] a,
  320. .skin-comms section[role="region"] > header:first-child menu[type="toolbar"] button {
  321. color: rgba(0,0,0,0.5);
  322. }
  323. /* ----------------------------------
  324. * HEADERS: right-to-left tweaks
  325. * ---------------------------------- */
  326. html[dir="rtl"] section[role="region"] > header:first-child h1 {
  327. text-align: right;
  328. padding: 0 3rem 0 1rem;
  329. }
  330. html[dir="rtl"] section[role="region"] > header:first-child form {
  331. padding: 1rem .5rem 0 1rem ;
  332. margin-right: 3.5rem;
  333. margin-left:0;
  334. }
  335. html[dir="rtl"] section[role="region"] > header:first-child form button[type="reset"] {
  336. left: 1rem;
  337. right:inherit;
  338. }
  339. html[dir="rtl"] section[role="region"] > header:first-child menu[type="toolbar"] {
  340. float: left;
  341. }
  342. html[dir="rtl"] section[role="region"] > header:first-child menu[type="toolbar"] a,
  343. html[dir="rtl"] section[role="region"] > header:first-child menu[type="toolbar"] button {
  344. float: right;
  345. }
  346. html[dir="rtl"] section[role="region"] > header:first-child > button,
  347. html[dir="rtl"] section[role="region"] > header:first-child > a {
  348. float: right;
  349. margin: 0 0 0 -5rem;
  350. }
  351. html[dir="rtl"] section[role="region"] > header:first-child > button:after,
  352. html[dir="rtl"] section[role="region"] > header:first-child > a:after {
  353. right: 0;
  354. }
  355. html[dir="rtl"] section[role="region"] > header:first-child > a .icon,
  356. html[dir="rtl"] section[role="region"] > header:first-child > button .icon {
  357. background-position: 0.2rem center;
  358. }
  359. html[dir="rtl"] section[role="region"] > header:first-child .icon.icon-back {
  360. transform: rotate(180deg);
  361. background-position: -0.2rem center;
  362. }