mdc.drawer.css 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888
  1. /*!
  2. Material Components for the web
  3. Copyright (c) 2017 Google Inc.
  4. License: Apache-2.0
  5. */
  6. /**
  7. * Creates a rule that will be applied when an MDC-Web component is within the context of an RTL layout.
  8. *
  9. * Usage Example:
  10. * ```scss
  11. * .mdc-foo {
  12. * position: absolute;
  13. * left: 0;
  14. *
  15. * @include mdc-rtl {
  16. * left: auto;
  17. * right: 0;
  18. * }
  19. *
  20. * &__bar {
  21. * margin-left: 4px;
  22. * @include mdc-rtl(".mdc-foo") {
  23. * margin-left: auto;
  24. * margin-right: 4px;
  25. * }
  26. * }
  27. * }
  28. *
  29. * .mdc-foo--mod {
  30. * padding-left: 4px;
  31. *
  32. * @include mdc-rtl {
  33. * padding-left: auto;
  34. * padding-right: 4px;
  35. * }
  36. * }
  37. * ```
  38. *
  39. * Note that this works by checking for [dir="rtl"] on an ancestor element. While this will work
  40. * in most cases, it will in some cases lead to false negatives, e.g.
  41. *
  42. * ```html
  43. * <html dir="rtl">
  44. * <!-- ... -->
  45. * <div dir="ltr">
  46. * <div class="mdc-foo">Styled incorrectly as RTL!</div>
  47. * </div>
  48. * </html>
  49. * ```
  50. *
  51. * In the future, selectors such as :dir (http://mdn.io/:dir) will help us mitigate this.
  52. */
  53. /**
  54. * Takes a base box-model property - e.g. margin / border / padding - along with a default
  55. * direction and value, and emits rules which apply the value to the
  56. * "<base-property>-<default-direction>" property by default, but flips the direction
  57. * when within an RTL context.
  58. *
  59. * For example:
  60. *
  61. * ```scss
  62. * .mdc-foo {
  63. * @include mdc-rtl-reflexive-box(margin, left, 8px);
  64. * }
  65. * ```
  66. * is equivalent to:
  67. *
  68. * ```scss
  69. * .mdc-foo {
  70. * margin-left: 8px;
  71. *
  72. * @include mdc-rtl {
  73. * margin-right: 8px;
  74. * margin-left: 0;
  75. * }
  76. * }
  77. * ```
  78. * whereas:
  79. *
  80. * ```scss
  81. * .mdc-foo {
  82. * @include mdc-rtl-reflexive-box(margin, right, 8px);
  83. * }
  84. * ```
  85. * is equivalent to:
  86. *
  87. * ```scss
  88. * .mdc-foo {
  89. * margin-right: 8px;
  90. *
  91. * @include mdc-rtl {
  92. * margin-right: 0;
  93. * margin-left: 8px;
  94. * }
  95. * }
  96. * ```
  97. *
  98. * You can also pass a 4th optional $root-selector argument which will be forwarded to `mdc-rtl`,
  99. * e.g. `@include mdc-rtl-reflexive-box(margin, left, 8px, ".mdc-component")`.
  100. *
  101. * Note that this function will always zero out the original value in an RTL context. If you're
  102. * trying to flip the values, use mdc-rtl-reflexive-property().
  103. */
  104. /**
  105. * Takes a base property and emits rules that assign <base-property>-left to <left-value> and
  106. * <base-property>-right to <right-value> in a LTR context, and vice versa in a RTL context.
  107. * For example:
  108. *
  109. * ```scss
  110. * .mdc-foo {
  111. * @include mdc-rtl-reflexive-property(margin, auto, 12px);
  112. * }
  113. * ```
  114. * is equivalent to:
  115. *
  116. * ```scss
  117. * .mdc-foo {
  118. * margin-left: auto;
  119. * margin-right: 12px;
  120. *
  121. * @include mdc-rtl {
  122. * margin-left: 12px;
  123. * margin-right: auto;
  124. * }
  125. * }
  126. * ```
  127. *
  128. * A 4th optional $root-selector argument can be given, which will be passed to `mdc-rtl`.
  129. */
  130. /**
  131. * Takes an argument specifying a horizontal position property (either "left" or "right") as well
  132. * as a value, and applies that value to the specified position in a LTR context, and flips it in a
  133. * RTL context. For example:
  134. *
  135. * ```scss
  136. * .mdc-foo {
  137. * @include mdc-rtl-reflexive-position(left, 0);
  138. * position: absolute;
  139. * }
  140. * ```
  141. * is equivalent to:
  142. *
  143. * ```scss
  144. * .mdc-foo {
  145. * position: absolute;
  146. * left: 0;
  147. * right: initial;
  148. *
  149. * @include mdc-rtl {
  150. * right: 0;
  151. * left: initial;
  152. * }
  153. * }
  154. * ```
  155. * An optional third $root-selector argument may also be given, which is passed to `mdc-rtl`.
  156. */
  157. /*
  158. Precomputed linear color channel values, for use in contrast calculations.
  159. See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  160. Algorithm, for c in 0 to 255:
  161. f(c) {
  162. c = c / 255;
  163. return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
  164. }
  165. This lookup table is needed since there is no `pow` in SASS.
  166. */
  167. /**
  168. * Calculate the luminance for a color.
  169. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  170. */
  171. /**
  172. * Calculate the contrast ratio between two colors.
  173. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  174. */
  175. /**
  176. * Determine whether to use dark or light text on top of given color.
  177. * Returns "dark" for dark text and "light" for light text.
  178. */
  179. /*
  180. Main theme colors.
  181. If you're a user customizing your color scheme in SASS, these are probably the only variables you need to change.
  182. */
  183. /* Indigo 500 */
  184. /* Pink A200 */
  185. /* White */
  186. /* Which set of text colors to use for each main theme color (light or dark) */
  187. /* Text colors according to light vs dark and text type */
  188. /* Primary text colors for each of the theme colors */
  189. /**
  190. * Applies the correct theme color style to the specified property.
  191. * $property is typically color or background-color, but can be any CSS property that accepts color values.
  192. * $style should be one of the map keys in $mdc-theme-property-values (_variables.scss).
  193. */
  194. /**
  195. * Creates a rule to be used in MDC-Web components for dark theming, and applies the provided contents.
  196. * Should provide the $root-selector option if applied to anything other than the root selector.
  197. * When used with a modifier class, provide a second argument of `true` for the $compound parameter
  198. * to specify that this should be attached as a compound class.
  199. *
  200. * Usage example:
  201. *
  202. * ```scss
  203. * .mdc-foo {
  204. * color: black;
  205. *
  206. * @include mdc-theme-dark {
  207. * color: white;
  208. * }
  209. *
  210. * &__bar {
  211. * background: black;
  212. *
  213. * @include mdc-theme-dark(".mdc-foo") {
  214. * background: white;
  215. * }
  216. * }
  217. * }
  218. *
  219. * .mdc-foo--disabled {
  220. * opacity: .38;
  221. *
  222. * @include mdc-theme-dark(".mdc-foo", true) {
  223. * opacity: .5;
  224. * }
  225. * }
  226. * ```
  227. */
  228. /*
  229. Precomputed linear color channel values, for use in contrast calculations.
  230. See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  231. Algorithm, for c in 0 to 255:
  232. f(c) {
  233. c = c / 255;
  234. return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
  235. }
  236. This lookup table is needed since there is no `pow` in SASS.
  237. */
  238. /**
  239. * Calculate the luminance for a color.
  240. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  241. */
  242. /**
  243. * Calculate the contrast ratio between two colors.
  244. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  245. */
  246. /**
  247. * Determine whether to use dark or light text on top of given color.
  248. * Returns "dark" for dark text and "light" for light text.
  249. */
  250. /*
  251. Main theme colors.
  252. If you're a user customizing your color scheme in SASS, these are probably the only variables you need to change.
  253. */
  254. /* Indigo 500 */
  255. /* Pink A200 */
  256. /* White */
  257. /* Which set of text colors to use for each main theme color (light or dark) */
  258. /* Text colors according to light vs dark and text type */
  259. /* Primary text colors for each of the theme colors */
  260. /**
  261. * Applies the correct theme color style to the specified property.
  262. * $property is typically color or background-color, but can be any CSS property that accepts color values.
  263. * $style should be one of the map keys in $mdc-theme-property-values (_variables.scss).
  264. */
  265. /**
  266. * Creates a rule to be used in MDC-Web components for dark theming, and applies the provided contents.
  267. * Should provide the $root-selector option if applied to anything other than the root selector.
  268. * When used with a modifier class, provide a second argument of `true` for the $compound parameter
  269. * to specify that this should be attached as a compound class.
  270. *
  271. * Usage example:
  272. *
  273. * ```scss
  274. * .mdc-foo {
  275. * color: black;
  276. *
  277. * @include mdc-theme-dark {
  278. * color: white;
  279. * }
  280. *
  281. * &__bar {
  282. * background: black;
  283. *
  284. * @include mdc-theme-dark(".mdc-foo") {
  285. * background: white;
  286. * }
  287. * }
  288. * }
  289. *
  290. * .mdc-foo--disabled {
  291. * opacity: .38;
  292. *
  293. * @include mdc-theme-dark(".mdc-foo", true) {
  294. * opacity: .5;
  295. * }
  296. * }
  297. * ```
  298. */
  299. /* TODO(sgomes): Figure out what to do about desktop font sizes. */
  300. /* TODO(sgomes): Figure out what to do about i18n and i18n font sizes. */
  301. /**
  302. * Copyright 2016 Google Inc. All Rights Reserved.
  303. *
  304. * Licensed under the Apache License, Version 2.0 (the "License");
  305. * you may not use this file except in compliance with the License.
  306. * You may obtain a copy of the License at
  307. *
  308. * http://www.apache.org/licenses/LICENSE-2.0
  309. *
  310. * Unless required by applicable law or agreed to in writing, software
  311. * distributed under the License is distributed on an "AS IS" BASIS,
  312. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  313. * See the License for the specific language governing permissions and
  314. * limitations under the License.
  315. */
  316. /**
  317. * Creates a rule that will be applied when an MDC-Web component is within the context of an RTL layout.
  318. *
  319. * Usage Example:
  320. * ```scss
  321. * .mdc-foo {
  322. * position: absolute;
  323. * left: 0;
  324. *
  325. * @include mdc-rtl {
  326. * left: auto;
  327. * right: 0;
  328. * }
  329. *
  330. * &__bar {
  331. * margin-left: 4px;
  332. * @include mdc-rtl(".mdc-foo") {
  333. * margin-left: auto;
  334. * margin-right: 4px;
  335. * }
  336. * }
  337. * }
  338. *
  339. * .mdc-foo--mod {
  340. * padding-left: 4px;
  341. *
  342. * @include mdc-rtl {
  343. * padding-left: auto;
  344. * padding-right: 4px;
  345. * }
  346. * }
  347. * ```
  348. *
  349. * Note that this works by checking for [dir="rtl"] on an ancestor element. While this will work
  350. * in most cases, it will in some cases lead to false negatives, e.g.
  351. *
  352. * ```html
  353. * <html dir="rtl">
  354. * <!-- ... -->
  355. * <div dir="ltr">
  356. * <div class="mdc-foo">Styled incorrectly as RTL!</div>
  357. * </div>
  358. * </html>
  359. * ```
  360. *
  361. * In the future, selectors such as :dir (http://mdn.io/:dir) will help us mitigate this.
  362. */
  363. /**
  364. * Takes a base box-model property - e.g. margin / border / padding - along with a default
  365. * direction and value, and emits rules which apply the value to the
  366. * "<base-property>-<default-direction>" property by default, but flips the direction
  367. * when within an RTL context.
  368. *
  369. * For example:
  370. *
  371. * ```scss
  372. * .mdc-foo {
  373. * @include mdc-rtl-reflexive-box(margin, left, 8px);
  374. * }
  375. * ```
  376. * is equivalent to:
  377. *
  378. * ```scss
  379. * .mdc-foo {
  380. * margin-left: 8px;
  381. *
  382. * @include mdc-rtl {
  383. * margin-right: 8px;
  384. * margin-left: 0;
  385. * }
  386. * }
  387. * ```
  388. * whereas:
  389. *
  390. * ```scss
  391. * .mdc-foo {
  392. * @include mdc-rtl-reflexive-box(margin, right, 8px);
  393. * }
  394. * ```
  395. * is equivalent to:
  396. *
  397. * ```scss
  398. * .mdc-foo {
  399. * margin-right: 8px;
  400. *
  401. * @include mdc-rtl {
  402. * margin-right: 0;
  403. * margin-left: 8px;
  404. * }
  405. * }
  406. * ```
  407. *
  408. * You can also pass a 4th optional $root-selector argument which will be forwarded to `mdc-rtl`,
  409. * e.g. `@include mdc-rtl-reflexive-box(margin, left, 8px, ".mdc-component")`.
  410. *
  411. * Note that this function will always zero out the original value in an RTL context. If you're
  412. * trying to flip the values, use mdc-rtl-reflexive-property().
  413. */
  414. /**
  415. * Takes a base property and emits rules that assign <base-property>-left to <left-value> and
  416. * <base-property>-right to <right-value> in a LTR context, and vice versa in a RTL context.
  417. * For example:
  418. *
  419. * ```scss
  420. * .mdc-foo {
  421. * @include mdc-rtl-reflexive-property(margin, auto, 12px);
  422. * }
  423. * ```
  424. * is equivalent to:
  425. *
  426. * ```scss
  427. * .mdc-foo {
  428. * margin-left: auto;
  429. * margin-right: 12px;
  430. *
  431. * @include mdc-rtl {
  432. * margin-left: 12px;
  433. * margin-right: auto;
  434. * }
  435. * }
  436. * ```
  437. *
  438. * A 4th optional $root-selector argument can be given, which will be passed to `mdc-rtl`.
  439. */
  440. /**
  441. * Takes an argument specifying a horizontal position property (either "left" or "right") as well
  442. * as a value, and applies that value to the specified position in a LTR context, and flips it in a
  443. * RTL context. For example:
  444. *
  445. * ```scss
  446. * .mdc-foo {
  447. * @include mdc-rtl-reflexive-position(left, 0);
  448. * position: absolute;
  449. * }
  450. * ```
  451. * is equivalent to:
  452. *
  453. * ```scss
  454. * .mdc-foo {
  455. * position: absolute;
  456. * left: 0;
  457. * right: initial;
  458. *
  459. * @include mdc-rtl {
  460. * right: 0;
  461. * left: initial;
  462. * }
  463. * }
  464. * ```
  465. * An optional third $root-selector argument may also be given, which is passed to `mdc-rtl`.
  466. */
  467. /**
  468. * Copyright 2016 Google Inc. All Rights Reserved.
  469. *
  470. * Licensed under the Apache License, Version 2.0 (the "License");
  471. * you may not use this file except in compliance with the License.
  472. * You may obtain a copy of the License at
  473. *
  474. * http://www.apache.org/licenses/LICENSE-2.0
  475. *
  476. * Unless required by applicable law or agreed to in writing, software
  477. * distributed under the License is distributed on an "AS IS" BASIS,
  478. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  479. * See the License for the specific language governing permissions and
  480. * limitations under the License.
  481. */
  482. :root {
  483. --mdc-persistent-drawer-dark-theme-bg-color: #212121; }
  484. .mdc-persistent-drawer {
  485. /* Use aspect ratio trick to maintain 16:9 aspect ratio on the header */
  486. /* stylelint-disable selector-no-qualifying-type */
  487. /* stylelint-enable selector-no-qualifying-type */
  488. /* TODO(sgomes): Revisit when we have interactive lists. */
  489. width: 0; }
  490. .mdc-persistent-drawer__toolbar-spacer {
  491. display: -webkit-box;
  492. display: -ms-flexbox;
  493. display: flex;
  494. position: relative;
  495. -webkit-box-orient: horizontal;
  496. -webkit-box-direction: normal;
  497. -ms-flex-direction: row;
  498. flex-direction: row;
  499. -ms-flex-negative: 0;
  500. flex-shrink: 0;
  501. -webkit-box-align: flex-center;
  502. -ms-flex-align: flex-center;
  503. align-items: flex-center;
  504. height: 56px;
  505. padding: 16px;
  506. border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  507. -webkit-box-sizing: border-box;
  508. box-sizing: border-box;
  509. /* TODO(sgomes): replace with global breakpoints when we have them */ }
  510. .mdc-persistent-drawer__toolbar-spacer--theme-dark .mdc-persistent-drawer__toolbar-spacer,
  511. .mdc-theme--dark .mdc-persistent-drawer__toolbar-spacer {
  512. border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  513. @media (min-width: 600px) {
  514. .mdc-persistent-drawer__toolbar-spacer {
  515. height: 64px; } }
  516. .mdc-persistent-drawer__header {
  517. position: relative; }
  518. .mdc-persistent-drawer__header::before {
  519. display: block;
  520. padding-top: 56.25%;
  521. content: ""; }
  522. .mdc-persistent-drawer__header-content {
  523. display: -webkit-box;
  524. display: -ms-flexbox;
  525. display: flex;
  526. position: absolute;
  527. top: 0;
  528. right: 0;
  529. bottom: 0;
  530. left: 0;
  531. -webkit-box-align: end;
  532. -ms-flex-align: end;
  533. align-items: flex-end;
  534. padding: 16px;
  535. -webkit-box-sizing: border-box;
  536. box-sizing: border-box; }
  537. .mdc-persistent-drawer .mdc-list-group,
  538. .mdc-persistent-drawer .mdc-list {
  539. padding-right: 0;
  540. padding-left: 0; }
  541. .mdc-persistent-drawer .mdc-list-item {
  542. position: relative;
  543. padding: 0 16px;
  544. outline: none;
  545. color: inherit;
  546. text-decoration: none;
  547. font-family: Roboto, sans-serif;
  548. -moz-osx-font-smoothing: grayscale;
  549. -webkit-font-smoothing: antialiased;
  550. font-size: 0.875rem;
  551. font-weight: 500;
  552. letter-spacing: 0.04em;
  553. line-height: 1.5rem;
  554. text-decoration: inherit;
  555. text-transform: inherit; }
  556. .mdc-persistent-drawer .mdc-list-item.mdc-ripple-upgraded {
  557. left: 0; }
  558. .mdc-persistent-drawer .mdc-list-item__start-detail {
  559. color: rgba(0, 0, 0, 0.54); }
  560. .mdc-persistent-drawer .mdc-list-item__start-detail--theme-dark .mdc-persistent-drawer .mdc-list-item__start-detail,
  561. .mdc-theme--dark .mdc-persistent-drawer .mdc-list-item__start-detail {
  562. color: rgba(255, 255, 255, 0.54); }
  563. .mdc-persistent-drawer--selected.mdc-list-item,
  564. .mdc-persistent-drawer--selected.mdc-list-item .mdc-list-item__start-detail {
  565. /* @alternate */
  566. color: #3f51b5;
  567. color: var(--mdc-theme-primary, #3f51b5); }
  568. .mdc-persistent-drawer .mdc-list-item::before {
  569. position: absolute;
  570. top: 0;
  571. left: 0;
  572. width: 100%;
  573. height: 100%;
  574. -webkit-transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
  575. transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
  576. border-radius: inherit;
  577. background: currentColor;
  578. content: "";
  579. opacity: 0; }
  580. .mdc-persistent-drawer .mdc-list-item:focus::before {
  581. -webkit-transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  582. transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  583. opacity: .12; }
  584. .mdc-persistent-drawer .mdc-list-item:active::before {
  585. /*
  586. Slightly darker value for visual distinction.
  587. This allows a full base that has distinct modes.
  588. Progressive enhancement with ripples will provide complete button spec alignment.
  589. */
  590. -webkit-transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  591. transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  592. opacity: .18; }
  593. .mdc-persistent-drawer .mdc-list-item:active:focus::before {
  594. -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  595. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  596. .mdc-persistent-drawer__drawer {
  597. /* @alternate */
  598. background: #fff;
  599. background: var(--mdc-theme-background, #fff);
  600. border-left: 0;
  601. border-right: 1px solid #e4e4e4;
  602. left: 0;
  603. right: initial;
  604. height: 100%;
  605. -webkit-transform: translateX(-107%);
  606. transform: translateX(-107%);
  607. -webkit-transform: translateX(calc(-100% - 20px));
  608. transform: translateX(calc(-100% - 20px));
  609. will-change: transform;
  610. display: -webkit-inline-box;
  611. display: -ms-inline-flexbox;
  612. display: inline-flex;
  613. -webkit-box-orient: vertical;
  614. -webkit-box-direction: normal;
  615. -ms-flex-direction: column;
  616. flex-direction: column;
  617. -webkit-box-sizing: border-box;
  618. box-sizing: border-box;
  619. width: 240px;
  620. overflow: hidden;
  621. -ms-touch-action: none;
  622. touch-action: none; }
  623. [dir="rtl"] .mdc-persistent-drawer__drawer, .mdc-persistent-drawer__drawer[dir="rtl"] {
  624. border-left: 1px solid #e4e4e4;
  625. border-right: 0; }
  626. [dir="rtl"] .mdc-persistent-drawer__drawer, .mdc-persistent-drawer__drawer[dir="rtl"] {
  627. left: initial;
  628. right: 0; }
  629. .mdc-persistent-drawer__drawer--theme-dark,
  630. .mdc-theme--dark .mdc-persistent-drawer__drawer {
  631. background-color: #212121;
  632. background-color: var(--mdc-persistent-drawer-dark-theme-bg-color, #212121);
  633. /* @alternate */
  634. color: white;
  635. color: var(--mdc-theme-text-primary-on-dark, white);
  636. border-left: 0;
  637. border-right: 1px solid rgba(255, 255, 255, 0.12); }
  638. [dir="rtl"] .mdc-persistent-drawer__drawer--theme-dark, .mdc-persistent-drawer__drawer--theme-dark[dir="rtl"], [dir="rtl"]
  639. .mdc-theme--dark .mdc-persistent-drawer__drawer,
  640. .mdc-theme--dark .mdc-persistent-drawer__drawer[dir="rtl"] {
  641. border-left: 1px solid rgba(255, 255, 255, 0.12);
  642. border-right: 0; }
  643. [dir="rtl"] .mdc-persistent-drawer .mdc-persistent-drawer__drawer,
  644. .mdc-persistent-drawer[dir="rtl"] .mdc-persistent-drawer__drawer {
  645. -webkit-transform: translateX(107%);
  646. transform: translateX(107%);
  647. -webkit-transform: translateX(calc(100% + 20px));
  648. transform: translateX(calc(100% + 20px)); }
  649. .mdc-persistent-drawer--animating .mdc-persistent-drawer__drawer {
  650. -webkit-transition: -webkit-transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1);
  651. transition: -webkit-transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1);
  652. transition: transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1);
  653. transition: transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1); }
  654. .mdc-persistent-drawer--animating.mdc-persistent-drawer--open .mdc-persistent-drawer__drawer {
  655. -webkit-transition: -webkit-transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1);
  656. transition: -webkit-transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1);
  657. transition: transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1);
  658. transition: transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1); }
  659. .mdc-persistent-drawer--open {
  660. width: 240px;
  661. pointer-events: auto; }
  662. .mdc-persistent-drawer--open .mdc-persistent-drawer__drawer {
  663. -webkit-transform: none;
  664. transform: none; }
  665. [dir="rtl"] .mdc-persistent-drawer--open .mdc-persistent-drawer__drawer, .mdc-persistent-drawer--open[dir="rtl"] .mdc-persistent-drawer__drawer {
  666. -webkit-transform: none;
  667. transform: none; }
  668. /**
  669. * Creates a rule that will be applied when an MDC-Web component is within the context of an RTL layout.
  670. *
  671. * Usage Example:
  672. * ```scss
  673. * .mdc-foo {
  674. * position: absolute;
  675. * left: 0;
  676. *
  677. * @include mdc-rtl {
  678. * left: auto;
  679. * right: 0;
  680. * }
  681. *
  682. * &__bar {
  683. * margin-left: 4px;
  684. * @include mdc-rtl(".mdc-foo") {
  685. * margin-left: auto;
  686. * margin-right: 4px;
  687. * }
  688. * }
  689. * }
  690. *
  691. * .mdc-foo--mod {
  692. * padding-left: 4px;
  693. *
  694. * @include mdc-rtl {
  695. * padding-left: auto;
  696. * padding-right: 4px;
  697. * }
  698. * }
  699. * ```
  700. *
  701. * Note that this works by checking for [dir="rtl"] on an ancestor element. While this will work
  702. * in most cases, it will in some cases lead to false negatives, e.g.
  703. *
  704. * ```html
  705. * <html dir="rtl">
  706. * <!-- ... -->
  707. * <div dir="ltr">
  708. * <div class="mdc-foo">Styled incorrectly as RTL!</div>
  709. * </div>
  710. * </html>
  711. * ```
  712. *
  713. * In the future, selectors such as :dir (http://mdn.io/:dir) will help us mitigate this.
  714. */
  715. /**
  716. * Takes a base box-model property - e.g. margin / border / padding - along with a default
  717. * direction and value, and emits rules which apply the value to the
  718. * "<base-property>-<default-direction>" property by default, but flips the direction
  719. * when within an RTL context.
  720. *
  721. * For example:
  722. *
  723. * ```scss
  724. * .mdc-foo {
  725. * @include mdc-rtl-reflexive-box(margin, left, 8px);
  726. * }
  727. * ```
  728. * is equivalent to:
  729. *
  730. * ```scss
  731. * .mdc-foo {
  732. * margin-left: 8px;
  733. *
  734. * @include mdc-rtl {
  735. * margin-right: 8px;
  736. * margin-left: 0;
  737. * }
  738. * }
  739. * ```
  740. * whereas:
  741. *
  742. * ```scss
  743. * .mdc-foo {
  744. * @include mdc-rtl-reflexive-box(margin, right, 8px);
  745. * }
  746. * ```
  747. * is equivalent to:
  748. *
  749. * ```scss
  750. * .mdc-foo {
  751. * margin-right: 8px;
  752. *
  753. * @include mdc-rtl {
  754. * margin-right: 0;
  755. * margin-left: 8px;
  756. * }
  757. * }
  758. * ```
  759. *
  760. * You can also pass a 4th optional $root-selector argument which will be forwarded to `mdc-rtl`,
  761. * e.g. `@include mdc-rtl-reflexive-box(margin, left, 8px, ".mdc-component")`.
  762. *
  763. * Note that this function will always zero out the original value in an RTL context. If you're
  764. * trying to flip the values, use mdc-rtl-reflexive-property().
  765. */
  766. /**
  767. * Takes a base property and emits rules that assign <base-property>-left to <left-value> and
  768. * <base-property>-right to <right-value> in a LTR context, and vice versa in a RTL context.
  769. * For example:
  770. *
  771. * ```scss
  772. * .mdc-foo {
  773. * @include mdc-rtl-reflexive-property(margin, auto, 12px);
  774. * }
  775. * ```
  776. * is equivalent to:
  777. *
  778. * ```scss
  779. * .mdc-foo {
  780. * margin-left: auto;
  781. * margin-right: 12px;
  782. *
  783. * @include mdc-rtl {
  784. * margin-left: 12px;
  785. * margin-right: auto;
  786. * }
  787. * }
  788. * ```
  789. *
  790. * A 4th optional $root-selector argument can be given, which will be passed to `mdc-rtl`.
  791. */
  792. /**
  793. * Takes an argument specifying a horizontal position property (either "left" or "right") as well
  794. * as a value, and applies that value to the specified position in a LTR context, and flips it in a
  795. * RTL context. For example:
  796. *
  797. * ```scss
  798. * .mdc-foo {
  799. * @include mdc-rtl-reflexive-position(left, 0);
  800. * position: absolute;
  801. * }
  802. * ```
  803. * is equivalent to:
  804. *
  805. * ```scss
  806. * .mdc-foo {
  807. * position: absolute;
  808. * left: 0;
  809. * right: initial;
  810. *
  811. * @include mdc-rtl {
  812. * right: 0;
  813. * left: initial;
  814. * }
  815. * }
  816. * ```
  817. * An optional third $root-selector argument may also be given, which is passed to `mdc-rtl`.
  818. */
  819. /*
  820. Precomputed linear color channel values, for use in contrast calculations.
  821. See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  822. Algorithm, for c in 0 to 255:
  823. f(c) {
  824. c = c / 255;
  825. return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
  826. }
  827. This lookup table is needed since there is no `pow` in SASS.
  828. */
  829. /**
  830. * Calculate the luminance for a color.
  831. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  832. */
  833. /**
  834. * Calculate the contrast ratio between two colors.
  835. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  836. */
  837. /**
  838. * Determine whether to use dark or light text on top of given color.
  839. * Returns "dark" for dark text and "light" for light text.
  840. */
  841. /*
  842. Main theme colors.
  843. If you're a user customizing your color scheme in SASS, these are probably the only variables you need to change.
  844. */
  845. /* Indigo 500 */
  846. /* Pink A200 */
  847. /* White */
  848. /* Which set of text colors to use for each main theme color (light or dark) */
  849. /* Text colors according to light vs dark and text type */
  850. /* Primary text colors for each of the theme colors */
  851. /**
  852. * Applies the correct theme color style to the specified property.
  853. * $property is typically color or background-color, but can be any CSS property that accepts color values.
  854. * $style should be one of the map keys in $mdc-theme-property-values (_variables.scss).
  855. */
  856. /**
  857. * Creates a rule to be used in MDC-Web components for dark theming, and applies the provided contents.
  858. * Should provide the $root-selector option if applied to anything other than the root selector.
  859. * When used with a modifier class, provide a second argument of `true` for the $compound parameter
  860. * to specify that this should be attached as a compound class.
  861. *
  862. * Usage example:
  863. *
  864. * ```scss
  865. * .mdc-foo {
  866. * color: black;
  867. *
  868. * @include mdc-theme-dark {
  869. * color: white;
  870. * }
  871. *
  872. * &__bar {
  873. * background: black;
  874. *
  875. * @include mdc-theme-dark(".mdc-foo") {
  876. * background: white;
  877. * }
  878. * }
  879. * }
  880. *
  881. * .mdc-foo--disabled {
  882. * opacity: .38;
  883. *
  884. * @include mdc-theme-dark(".mdc-foo", true) {
  885. * opacity: .5;
  886. * }
  887. * }
  888. * ```
  889. */
  890. /*
  891. Precomputed linear color channel values, for use in contrast calculations.
  892. See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  893. Algorithm, for c in 0 to 255:
  894. f(c) {
  895. c = c / 255;
  896. return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
  897. }
  898. This lookup table is needed since there is no `pow` in SASS.
  899. */
  900. /**
  901. * Calculate the luminance for a color.
  902. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  903. */
  904. /**
  905. * Calculate the contrast ratio between two colors.
  906. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  907. */
  908. /**
  909. * Determine whether to use dark or light text on top of given color.
  910. * Returns "dark" for dark text and "light" for light text.
  911. */
  912. /*
  913. Main theme colors.
  914. If you're a user customizing your color scheme in SASS, these are probably the only variables you need to change.
  915. */
  916. /* Indigo 500 */
  917. /* Pink A200 */
  918. /* White */
  919. /* Which set of text colors to use for each main theme color (light or dark) */
  920. /* Text colors according to light vs dark and text type */
  921. /* Primary text colors for each of the theme colors */
  922. /**
  923. * Applies the correct theme color style to the specified property.
  924. * $property is typically color or background-color, but can be any CSS property that accepts color values.
  925. * $style should be one of the map keys in $mdc-theme-property-values (_variables.scss).
  926. */
  927. /**
  928. * Creates a rule to be used in MDC-Web components for dark theming, and applies the provided contents.
  929. * Should provide the $root-selector option if applied to anything other than the root selector.
  930. * When used with a modifier class, provide a second argument of `true` for the $compound parameter
  931. * to specify that this should be attached as a compound class.
  932. *
  933. * Usage example:
  934. *
  935. * ```scss
  936. * .mdc-foo {
  937. * color: black;
  938. *
  939. * @include mdc-theme-dark {
  940. * color: white;
  941. * }
  942. *
  943. * &__bar {
  944. * background: black;
  945. *
  946. * @include mdc-theme-dark(".mdc-foo") {
  947. * background: white;
  948. * }
  949. * }
  950. * }
  951. *
  952. * .mdc-foo--disabled {
  953. * opacity: .38;
  954. *
  955. * @include mdc-theme-dark(".mdc-foo", true) {
  956. * opacity: .5;
  957. * }
  958. * }
  959. * ```
  960. */
  961. /* TODO(sgomes): Figure out what to do about desktop font sizes. */
  962. /* TODO(sgomes): Figure out what to do about i18n and i18n font sizes. */
  963. :root {
  964. --mdc-permanent-drawer-dark-theme-bg-color: #212121; }
  965. .mdc-permanent-drawer {
  966. /* Use aspect ratio trick to maintain 16:9 aspect ratio on the header */
  967. /* stylelint-disable selector-no-qualifying-type */
  968. /* stylelint-enable selector-no-qualifying-type */
  969. /* TODO(sgomes): Revisit when we have interactive lists. */
  970. /* @alternate */
  971. background: #fff;
  972. background: var(--mdc-theme-background, #fff);
  973. border-left: 0;
  974. border-right: 1px solid #e4e4e4;
  975. left: 0;
  976. right: initial;
  977. display: -webkit-inline-box;
  978. display: -ms-inline-flexbox;
  979. display: inline-flex;
  980. -webkit-box-orient: vertical;
  981. -webkit-box-direction: normal;
  982. -ms-flex-direction: column;
  983. flex-direction: column;
  984. -webkit-box-flex: 0;
  985. -ms-flex: 0 0 auto;
  986. flex: 0 0 auto;
  987. width: 240px;
  988. -webkit-box-sizing: border-box;
  989. box-sizing: border-box;
  990. overflow: hidden; }
  991. .mdc-permanent-drawer__toolbar-spacer {
  992. display: -webkit-box;
  993. display: -ms-flexbox;
  994. display: flex;
  995. position: relative;
  996. -webkit-box-orient: horizontal;
  997. -webkit-box-direction: normal;
  998. -ms-flex-direction: row;
  999. flex-direction: row;
  1000. -ms-flex-negative: 0;
  1001. flex-shrink: 0;
  1002. -webkit-box-align: flex-center;
  1003. -ms-flex-align: flex-center;
  1004. align-items: flex-center;
  1005. height: 56px;
  1006. padding: 16px;
  1007. border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  1008. -webkit-box-sizing: border-box;
  1009. box-sizing: border-box;
  1010. /* TODO(sgomes): replace with global breakpoints when we have them */ }
  1011. .mdc-permanent-drawer__toolbar-spacer--theme-dark .mdc-permanent-drawer__toolbar-spacer,
  1012. .mdc-theme--dark .mdc-permanent-drawer__toolbar-spacer {
  1013. border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  1014. @media (min-width: 600px) {
  1015. .mdc-permanent-drawer__toolbar-spacer {
  1016. height: 64px; } }
  1017. .mdc-permanent-drawer__header {
  1018. position: relative; }
  1019. .mdc-permanent-drawer__header::before {
  1020. display: block;
  1021. padding-top: 56.25%;
  1022. content: ""; }
  1023. .mdc-permanent-drawer__header-content {
  1024. display: -webkit-box;
  1025. display: -ms-flexbox;
  1026. display: flex;
  1027. position: absolute;
  1028. top: 0;
  1029. right: 0;
  1030. bottom: 0;
  1031. left: 0;
  1032. -webkit-box-align: end;
  1033. -ms-flex-align: end;
  1034. align-items: flex-end;
  1035. padding: 16px;
  1036. -webkit-box-sizing: border-box;
  1037. box-sizing: border-box; }
  1038. .mdc-permanent-drawer .mdc-list-group,
  1039. .mdc-permanent-drawer .mdc-list {
  1040. padding-right: 0;
  1041. padding-left: 0; }
  1042. .mdc-permanent-drawer .mdc-list-item {
  1043. position: relative;
  1044. padding: 0 16px;
  1045. outline: none;
  1046. color: inherit;
  1047. text-decoration: none;
  1048. font-family: Roboto, sans-serif;
  1049. -moz-osx-font-smoothing: grayscale;
  1050. -webkit-font-smoothing: antialiased;
  1051. font-size: 0.875rem;
  1052. font-weight: 500;
  1053. letter-spacing: 0.04em;
  1054. line-height: 1.5rem;
  1055. text-decoration: inherit;
  1056. text-transform: inherit; }
  1057. .mdc-permanent-drawer .mdc-list-item.mdc-ripple-upgraded {
  1058. left: 0; }
  1059. .mdc-permanent-drawer .mdc-list-item__start-detail {
  1060. color: rgba(0, 0, 0, 0.54); }
  1061. .mdc-permanent-drawer .mdc-list-item__start-detail--theme-dark .mdc-permanent-drawer .mdc-list-item__start-detail,
  1062. .mdc-theme--dark .mdc-permanent-drawer .mdc-list-item__start-detail {
  1063. color: rgba(255, 255, 255, 0.54); }
  1064. .mdc-permanent-drawer--selected.mdc-list-item,
  1065. .mdc-permanent-drawer--selected.mdc-list-item .mdc-list-item__start-detail {
  1066. /* @alternate */
  1067. color: #3f51b5;
  1068. color: var(--mdc-theme-primary, #3f51b5); }
  1069. .mdc-permanent-drawer .mdc-list-item::before {
  1070. position: absolute;
  1071. top: 0;
  1072. left: 0;
  1073. width: 100%;
  1074. height: 100%;
  1075. -webkit-transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
  1076. transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
  1077. border-radius: inherit;
  1078. background: currentColor;
  1079. content: "";
  1080. opacity: 0; }
  1081. .mdc-permanent-drawer .mdc-list-item:focus::before {
  1082. -webkit-transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1083. transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1084. opacity: .12; }
  1085. .mdc-permanent-drawer .mdc-list-item:active::before {
  1086. /*
  1087. Slightly darker value for visual distinction.
  1088. This allows a full base that has distinct modes.
  1089. Progressive enhancement with ripples will provide complete button spec alignment.
  1090. */
  1091. -webkit-transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1092. transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1093. opacity: .18; }
  1094. .mdc-permanent-drawer .mdc-list-item:active:focus::before {
  1095. -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  1096. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  1097. [dir="rtl"] .mdc-permanent-drawer, .mdc-permanent-drawer[dir="rtl"] {
  1098. border-left: 1px solid #e4e4e4;
  1099. border-right: 0; }
  1100. [dir="rtl"] .mdc-permanent-drawer, .mdc-permanent-drawer[dir="rtl"] {
  1101. left: initial;
  1102. right: 0; }
  1103. .mdc-permanent-drawer--theme-dark,
  1104. .mdc-theme--dark .mdc-permanent-drawer {
  1105. background-color: #212121;
  1106. background-color: var(--mdc-permanent-drawer-dark-theme-bg-color, #212121);
  1107. /* @alternate */
  1108. color: white;
  1109. color: var(--mdc-theme-text-primary-on-dark, white);
  1110. border-left: 0;
  1111. border-right: 1px solid rgba(255, 255, 255, 0.12); }
  1112. [dir="rtl"] .mdc-permanent-drawer--theme-dark, .mdc-permanent-drawer--theme-dark[dir="rtl"], [dir="rtl"]
  1113. .mdc-theme--dark .mdc-permanent-drawer,
  1114. .mdc-theme--dark .mdc-permanent-drawer[dir="rtl"] {
  1115. border-left: 1px solid rgba(255, 255, 255, 0.12);
  1116. border-right: 0; }
  1117. .mdc-permanent-drawer--floating {
  1118. background: none;
  1119. border-left: 0;
  1120. border-right: none; }
  1121. [dir="rtl"] .mdc-permanent-drawer--floating, .mdc-permanent-drawer--floating[dir="rtl"] {
  1122. border-left: none;
  1123. border-right: 0; }
  1124. .mdc-permanent-drawer--floating--theme-dark,
  1125. .mdc-theme--dark .mdc-permanent-drawer--floating {
  1126. background: none;
  1127. border-left: 0;
  1128. border-right: none; }
  1129. [dir="rtl"] .mdc-permanent-drawer--floating--theme-dark, .mdc-permanent-drawer--floating--theme-dark[dir="rtl"], [dir="rtl"]
  1130. .mdc-theme--dark .mdc-permanent-drawer--floating,
  1131. .mdc-theme--dark .mdc-permanent-drawer--floating[dir="rtl"] {
  1132. border-left: none;
  1133. border-right: 0; }
  1134. /**
  1135. * The css property used for elevation. In most cases this should not be changed. It is exposed
  1136. * as a variable for abstraction / easy use when needing to reference the property directly, for
  1137. * example in a `will-change` rule.
  1138. */
  1139. /**
  1140. * The default duration value for elevation transitions.
  1141. */
  1142. /**
  1143. * The default easing value for elevation transitions.
  1144. */
  1145. /**
  1146. * Applies the correct css rules to an element to give it the elevation specified by $z-value.
  1147. * The $z-value must be between 0 and 24.
  1148. */
  1149. /**
  1150. * Returns a string that can be used as the value for a `transition` property for elevation.
  1151. * Calling this function directly is useful in situations where a component needs to transition
  1152. * more than one property.
  1153. *
  1154. * ```scss
  1155. * .foo {
  1156. * transition: mdc-elevation-transition-rule(), opacity 100ms ease;
  1157. * will-change: $mdc-elevation-property, opacity;
  1158. * }
  1159. * ```
  1160. */
  1161. /**
  1162. * Applies the correct css rules needed to have an element transition between elevations.
  1163. * This mixin should be applied to elements whose elevation values will change depending on their
  1164. * context (e.g. when active or disabled).
  1165. */
  1166. /**
  1167. * Creates a rule that will be applied when an MDC-Web component is within the context of an RTL layout.
  1168. *
  1169. * Usage Example:
  1170. * ```scss
  1171. * .mdc-foo {
  1172. * position: absolute;
  1173. * left: 0;
  1174. *
  1175. * @include mdc-rtl {
  1176. * left: auto;
  1177. * right: 0;
  1178. * }
  1179. *
  1180. * &__bar {
  1181. * margin-left: 4px;
  1182. * @include mdc-rtl(".mdc-foo") {
  1183. * margin-left: auto;
  1184. * margin-right: 4px;
  1185. * }
  1186. * }
  1187. * }
  1188. *
  1189. * .mdc-foo--mod {
  1190. * padding-left: 4px;
  1191. *
  1192. * @include mdc-rtl {
  1193. * padding-left: auto;
  1194. * padding-right: 4px;
  1195. * }
  1196. * }
  1197. * ```
  1198. *
  1199. * Note that this works by checking for [dir="rtl"] on an ancestor element. While this will work
  1200. * in most cases, it will in some cases lead to false negatives, e.g.
  1201. *
  1202. * ```html
  1203. * <html dir="rtl">
  1204. * <!-- ... -->
  1205. * <div dir="ltr">
  1206. * <div class="mdc-foo">Styled incorrectly as RTL!</div>
  1207. * </div>
  1208. * </html>
  1209. * ```
  1210. *
  1211. * In the future, selectors such as :dir (http://mdn.io/:dir) will help us mitigate this.
  1212. */
  1213. /**
  1214. * Takes a base box-model property - e.g. margin / border / padding - along with a default
  1215. * direction and value, and emits rules which apply the value to the
  1216. * "<base-property>-<default-direction>" property by default, but flips the direction
  1217. * when within an RTL context.
  1218. *
  1219. * For example:
  1220. *
  1221. * ```scss
  1222. * .mdc-foo {
  1223. * @include mdc-rtl-reflexive-box(margin, left, 8px);
  1224. * }
  1225. * ```
  1226. * is equivalent to:
  1227. *
  1228. * ```scss
  1229. * .mdc-foo {
  1230. * margin-left: 8px;
  1231. *
  1232. * @include mdc-rtl {
  1233. * margin-right: 8px;
  1234. * margin-left: 0;
  1235. * }
  1236. * }
  1237. * ```
  1238. * whereas:
  1239. *
  1240. * ```scss
  1241. * .mdc-foo {
  1242. * @include mdc-rtl-reflexive-box(margin, right, 8px);
  1243. * }
  1244. * ```
  1245. * is equivalent to:
  1246. *
  1247. * ```scss
  1248. * .mdc-foo {
  1249. * margin-right: 8px;
  1250. *
  1251. * @include mdc-rtl {
  1252. * margin-right: 0;
  1253. * margin-left: 8px;
  1254. * }
  1255. * }
  1256. * ```
  1257. *
  1258. * You can also pass a 4th optional $root-selector argument which will be forwarded to `mdc-rtl`,
  1259. * e.g. `@include mdc-rtl-reflexive-box(margin, left, 8px, ".mdc-component")`.
  1260. *
  1261. * Note that this function will always zero out the original value in an RTL context. If you're
  1262. * trying to flip the values, use mdc-rtl-reflexive-property().
  1263. */
  1264. /**
  1265. * Takes a base property and emits rules that assign <base-property>-left to <left-value> and
  1266. * <base-property>-right to <right-value> in a LTR context, and vice versa in a RTL context.
  1267. * For example:
  1268. *
  1269. * ```scss
  1270. * .mdc-foo {
  1271. * @include mdc-rtl-reflexive-property(margin, auto, 12px);
  1272. * }
  1273. * ```
  1274. * is equivalent to:
  1275. *
  1276. * ```scss
  1277. * .mdc-foo {
  1278. * margin-left: auto;
  1279. * margin-right: 12px;
  1280. *
  1281. * @include mdc-rtl {
  1282. * margin-left: 12px;
  1283. * margin-right: auto;
  1284. * }
  1285. * }
  1286. * ```
  1287. *
  1288. * A 4th optional $root-selector argument can be given, which will be passed to `mdc-rtl`.
  1289. */
  1290. /**
  1291. * Takes an argument specifying a horizontal position property (either "left" or "right") as well
  1292. * as a value, and applies that value to the specified position in a LTR context, and flips it in a
  1293. * RTL context. For example:
  1294. *
  1295. * ```scss
  1296. * .mdc-foo {
  1297. * @include mdc-rtl-reflexive-position(left, 0);
  1298. * position: absolute;
  1299. * }
  1300. * ```
  1301. * is equivalent to:
  1302. *
  1303. * ```scss
  1304. * .mdc-foo {
  1305. * position: absolute;
  1306. * left: 0;
  1307. * right: initial;
  1308. *
  1309. * @include mdc-rtl {
  1310. * right: 0;
  1311. * left: initial;
  1312. * }
  1313. * }
  1314. * ```
  1315. * An optional third $root-selector argument may also be given, which is passed to `mdc-rtl`.
  1316. */
  1317. /*
  1318. Precomputed linear color channel values, for use in contrast calculations.
  1319. See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  1320. Algorithm, for c in 0 to 255:
  1321. f(c) {
  1322. c = c / 255;
  1323. return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
  1324. }
  1325. This lookup table is needed since there is no `pow` in SASS.
  1326. */
  1327. /**
  1328. * Calculate the luminance for a color.
  1329. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  1330. */
  1331. /**
  1332. * Calculate the contrast ratio between two colors.
  1333. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  1334. */
  1335. /**
  1336. * Determine whether to use dark or light text on top of given color.
  1337. * Returns "dark" for dark text and "light" for light text.
  1338. */
  1339. /*
  1340. Main theme colors.
  1341. If you're a user customizing your color scheme in SASS, these are probably the only variables you need to change.
  1342. */
  1343. /* Indigo 500 */
  1344. /* Pink A200 */
  1345. /* White */
  1346. /* Which set of text colors to use for each main theme color (light or dark) */
  1347. /* Text colors according to light vs dark and text type */
  1348. /* Primary text colors for each of the theme colors */
  1349. /**
  1350. * Applies the correct theme color style to the specified property.
  1351. * $property is typically color or background-color, but can be any CSS property that accepts color values.
  1352. * $style should be one of the map keys in $mdc-theme-property-values (_variables.scss).
  1353. */
  1354. /**
  1355. * Creates a rule to be used in MDC-Web components for dark theming, and applies the provided contents.
  1356. * Should provide the $root-selector option if applied to anything other than the root selector.
  1357. * When used with a modifier class, provide a second argument of `true` for the $compound parameter
  1358. * to specify that this should be attached as a compound class.
  1359. *
  1360. * Usage example:
  1361. *
  1362. * ```scss
  1363. * .mdc-foo {
  1364. * color: black;
  1365. *
  1366. * @include mdc-theme-dark {
  1367. * color: white;
  1368. * }
  1369. *
  1370. * &__bar {
  1371. * background: black;
  1372. *
  1373. * @include mdc-theme-dark(".mdc-foo") {
  1374. * background: white;
  1375. * }
  1376. * }
  1377. * }
  1378. *
  1379. * .mdc-foo--disabled {
  1380. * opacity: .38;
  1381. *
  1382. * @include mdc-theme-dark(".mdc-foo", true) {
  1383. * opacity: .5;
  1384. * }
  1385. * }
  1386. * ```
  1387. */
  1388. /*
  1389. Precomputed linear color channel values, for use in contrast calculations.
  1390. See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  1391. Algorithm, for c in 0 to 255:
  1392. f(c) {
  1393. c = c / 255;
  1394. return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
  1395. }
  1396. This lookup table is needed since there is no `pow` in SASS.
  1397. */
  1398. /**
  1399. * Calculate the luminance for a color.
  1400. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  1401. */
  1402. /**
  1403. * Calculate the contrast ratio between two colors.
  1404. * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
  1405. */
  1406. /**
  1407. * Determine whether to use dark or light text on top of given color.
  1408. * Returns "dark" for dark text and "light" for light text.
  1409. */
  1410. /*
  1411. Main theme colors.
  1412. If you're a user customizing your color scheme in SASS, these are probably the only variables you need to change.
  1413. */
  1414. /* Indigo 500 */
  1415. /* Pink A200 */
  1416. /* White */
  1417. /* Which set of text colors to use for each main theme color (light or dark) */
  1418. /* Text colors according to light vs dark and text type */
  1419. /* Primary text colors for each of the theme colors */
  1420. /**
  1421. * Applies the correct theme color style to the specified property.
  1422. * $property is typically color or background-color, but can be any CSS property that accepts color values.
  1423. * $style should be one of the map keys in $mdc-theme-property-values (_variables.scss).
  1424. */
  1425. /**
  1426. * Creates a rule to be used in MDC-Web components for dark theming, and applies the provided contents.
  1427. * Should provide the $root-selector option if applied to anything other than the root selector.
  1428. * When used with a modifier class, provide a second argument of `true` for the $compound parameter
  1429. * to specify that this should be attached as a compound class.
  1430. *
  1431. * Usage example:
  1432. *
  1433. * ```scss
  1434. * .mdc-foo {
  1435. * color: black;
  1436. *
  1437. * @include mdc-theme-dark {
  1438. * color: white;
  1439. * }
  1440. *
  1441. * &__bar {
  1442. * background: black;
  1443. *
  1444. * @include mdc-theme-dark(".mdc-foo") {
  1445. * background: white;
  1446. * }
  1447. * }
  1448. * }
  1449. *
  1450. * .mdc-foo--disabled {
  1451. * opacity: .38;
  1452. *
  1453. * @include mdc-theme-dark(".mdc-foo", true) {
  1454. * opacity: .5;
  1455. * }
  1456. * }
  1457. * ```
  1458. */
  1459. /* TODO(sgomes): Figure out what to do about desktop font sizes. */
  1460. /* TODO(sgomes): Figure out what to do about i18n and i18n font sizes. */
  1461. /**
  1462. * Copyright 2016 Google Inc. All Rights Reserved.
  1463. *
  1464. * Licensed under the Apache License, Version 2.0 (the "License");
  1465. * you may not use this file except in compliance with the License.
  1466. * You may obtain a copy of the License at
  1467. *
  1468. * http://www.apache.org/licenses/LICENSE-2.0
  1469. *
  1470. * Unless required by applicable law or agreed to in writing, software
  1471. * distributed under the License is distributed on an "AS IS" BASIS,
  1472. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1473. * See the License for the specific language governing permissions and
  1474. * limitations under the License.
  1475. */
  1476. /**
  1477. * Creates a rule that will be applied when an MDC-Web component is within the context of an RTL layout.
  1478. *
  1479. * Usage Example:
  1480. * ```scss
  1481. * .mdc-foo {
  1482. * position: absolute;
  1483. * left: 0;
  1484. *
  1485. * @include mdc-rtl {
  1486. * left: auto;
  1487. * right: 0;
  1488. * }
  1489. *
  1490. * &__bar {
  1491. * margin-left: 4px;
  1492. * @include mdc-rtl(".mdc-foo") {
  1493. * margin-left: auto;
  1494. * margin-right: 4px;
  1495. * }
  1496. * }
  1497. * }
  1498. *
  1499. * .mdc-foo--mod {
  1500. * padding-left: 4px;
  1501. *
  1502. * @include mdc-rtl {
  1503. * padding-left: auto;
  1504. * padding-right: 4px;
  1505. * }
  1506. * }
  1507. * ```
  1508. *
  1509. * Note that this works by checking for [dir="rtl"] on an ancestor element. While this will work
  1510. * in most cases, it will in some cases lead to false negatives, e.g.
  1511. *
  1512. * ```html
  1513. * <html dir="rtl">
  1514. * <!-- ... -->
  1515. * <div dir="ltr">
  1516. * <div class="mdc-foo">Styled incorrectly as RTL!</div>
  1517. * </div>
  1518. * </html>
  1519. * ```
  1520. *
  1521. * In the future, selectors such as :dir (http://mdn.io/:dir) will help us mitigate this.
  1522. */
  1523. /**
  1524. * Takes a base box-model property - e.g. margin / border / padding - along with a default
  1525. * direction and value, and emits rules which apply the value to the
  1526. * "<base-property>-<default-direction>" property by default, but flips the direction
  1527. * when within an RTL context.
  1528. *
  1529. * For example:
  1530. *
  1531. * ```scss
  1532. * .mdc-foo {
  1533. * @include mdc-rtl-reflexive-box(margin, left, 8px);
  1534. * }
  1535. * ```
  1536. * is equivalent to:
  1537. *
  1538. * ```scss
  1539. * .mdc-foo {
  1540. * margin-left: 8px;
  1541. *
  1542. * @include mdc-rtl {
  1543. * margin-right: 8px;
  1544. * margin-left: 0;
  1545. * }
  1546. * }
  1547. * ```
  1548. * whereas:
  1549. *
  1550. * ```scss
  1551. * .mdc-foo {
  1552. * @include mdc-rtl-reflexive-box(margin, right, 8px);
  1553. * }
  1554. * ```
  1555. * is equivalent to:
  1556. *
  1557. * ```scss
  1558. * .mdc-foo {
  1559. * margin-right: 8px;
  1560. *
  1561. * @include mdc-rtl {
  1562. * margin-right: 0;
  1563. * margin-left: 8px;
  1564. * }
  1565. * }
  1566. * ```
  1567. *
  1568. * You can also pass a 4th optional $root-selector argument which will be forwarded to `mdc-rtl`,
  1569. * e.g. `@include mdc-rtl-reflexive-box(margin, left, 8px, ".mdc-component")`.
  1570. *
  1571. * Note that this function will always zero out the original value in an RTL context. If you're
  1572. * trying to flip the values, use mdc-rtl-reflexive-property().
  1573. */
  1574. /**
  1575. * Takes a base property and emits rules that assign <base-property>-left to <left-value> and
  1576. * <base-property>-right to <right-value> in a LTR context, and vice versa in a RTL context.
  1577. * For example:
  1578. *
  1579. * ```scss
  1580. * .mdc-foo {
  1581. * @include mdc-rtl-reflexive-property(margin, auto, 12px);
  1582. * }
  1583. * ```
  1584. * is equivalent to:
  1585. *
  1586. * ```scss
  1587. * .mdc-foo {
  1588. * margin-left: auto;
  1589. * margin-right: 12px;
  1590. *
  1591. * @include mdc-rtl {
  1592. * margin-left: 12px;
  1593. * margin-right: auto;
  1594. * }
  1595. * }
  1596. * ```
  1597. *
  1598. * A 4th optional $root-selector argument can be given, which will be passed to `mdc-rtl`.
  1599. */
  1600. /**
  1601. * Takes an argument specifying a horizontal position property (either "left" or "right") as well
  1602. * as a value, and applies that value to the specified position in a LTR context, and flips it in a
  1603. * RTL context. For example:
  1604. *
  1605. * ```scss
  1606. * .mdc-foo {
  1607. * @include mdc-rtl-reflexive-position(left, 0);
  1608. * position: absolute;
  1609. * }
  1610. * ```
  1611. * is equivalent to:
  1612. *
  1613. * ```scss
  1614. * .mdc-foo {
  1615. * position: absolute;
  1616. * left: 0;
  1617. * right: initial;
  1618. *
  1619. * @include mdc-rtl {
  1620. * right: 0;
  1621. * left: initial;
  1622. * }
  1623. * }
  1624. * ```
  1625. * An optional third $root-selector argument may also be given, which is passed to `mdc-rtl`.
  1626. */
  1627. /**
  1628. * Copyright 2016 Google Inc. All Rights Reserved.
  1629. *
  1630. * Licensed under the Apache License, Version 2.0 (the "License");
  1631. * you may not use this file except in compliance with the License.
  1632. * You may obtain a copy of the License at
  1633. *
  1634. * http://www.apache.org/licenses/LICENSE-2.0
  1635. *
  1636. * Unless required by applicable law or agreed to in writing, software
  1637. * distributed under the License is distributed on an "AS IS" BASIS,
  1638. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1639. * See the License for the specific language governing permissions and
  1640. * limitations under the License.
  1641. */
  1642. .mdc-temporary-drawer {
  1643. /* Use aspect ratio trick to maintain 16:9 aspect ratio on the header */
  1644. /* stylelint-disable selector-no-qualifying-type */
  1645. /* stylelint-enable selector-no-qualifying-type */
  1646. /* TODO(sgomes): Revisit when we have interactive lists. */
  1647. position: fixed;
  1648. top: 0;
  1649. left: 0;
  1650. width: 100%;
  1651. height: 100%;
  1652. overflow: hidden;
  1653. pointer-events: none;
  1654. -webkit-box-sizing: border-box;
  1655. box-sizing: border-box;
  1656. contain: strict;
  1657. z-index: 5;
  1658. /* Shaded background */ }
  1659. .mdc-temporary-drawer__toolbar-spacer {
  1660. display: -webkit-box;
  1661. display: -ms-flexbox;
  1662. display: flex;
  1663. position: relative;
  1664. -webkit-box-orient: horizontal;
  1665. -webkit-box-direction: normal;
  1666. -ms-flex-direction: row;
  1667. flex-direction: row;
  1668. -ms-flex-negative: 0;
  1669. flex-shrink: 0;
  1670. -webkit-box-align: flex-center;
  1671. -ms-flex-align: flex-center;
  1672. align-items: flex-center;
  1673. height: 56px;
  1674. padding: 16px;
  1675. border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  1676. -webkit-box-sizing: border-box;
  1677. box-sizing: border-box;
  1678. /* TODO(sgomes): replace with global breakpoints when we have them */ }
  1679. .mdc-temporary-drawer__toolbar-spacer--theme-dark .mdc-temporary-drawer__toolbar-spacer,
  1680. .mdc-theme--dark .mdc-temporary-drawer__toolbar-spacer {
  1681. border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  1682. @media (min-width: 600px) {
  1683. .mdc-temporary-drawer__toolbar-spacer {
  1684. height: 64px; } }
  1685. .mdc-temporary-drawer__header {
  1686. position: relative; }
  1687. .mdc-temporary-drawer__header::before {
  1688. display: block;
  1689. padding-top: 56.25%;
  1690. content: ""; }
  1691. .mdc-temporary-drawer__header-content {
  1692. display: -webkit-box;
  1693. display: -ms-flexbox;
  1694. display: flex;
  1695. position: absolute;
  1696. top: 0;
  1697. right: 0;
  1698. bottom: 0;
  1699. left: 0;
  1700. -webkit-box-align: end;
  1701. -ms-flex-align: end;
  1702. align-items: flex-end;
  1703. padding: 16px;
  1704. -webkit-box-sizing: border-box;
  1705. box-sizing: border-box; }
  1706. .mdc-temporary-drawer .mdc-list-group,
  1707. .mdc-temporary-drawer .mdc-list {
  1708. padding-right: 0;
  1709. padding-left: 0; }
  1710. .mdc-temporary-drawer .mdc-list-item {
  1711. position: relative;
  1712. padding: 0 16px;
  1713. outline: none;
  1714. color: inherit;
  1715. text-decoration: none;
  1716. font-family: Roboto, sans-serif;
  1717. -moz-osx-font-smoothing: grayscale;
  1718. -webkit-font-smoothing: antialiased;
  1719. font-size: 0.875rem;
  1720. font-weight: 500;
  1721. letter-spacing: 0.04em;
  1722. line-height: 1.5rem;
  1723. text-decoration: inherit;
  1724. text-transform: inherit; }
  1725. .mdc-temporary-drawer .mdc-list-item.mdc-ripple-upgraded {
  1726. left: 0; }
  1727. .mdc-temporary-drawer .mdc-list-item__start-detail {
  1728. color: rgba(0, 0, 0, 0.54); }
  1729. .mdc-temporary-drawer .mdc-list-item__start-detail--theme-dark .mdc-temporary-drawer .mdc-list-item__start-detail,
  1730. .mdc-theme--dark .mdc-temporary-drawer .mdc-list-item__start-detail {
  1731. color: rgba(255, 255, 255, 0.54); }
  1732. .mdc-temporary-drawer--selected.mdc-list-item,
  1733. .mdc-temporary-drawer--selected.mdc-list-item .mdc-list-item__start-detail {
  1734. /* @alternate */
  1735. color: #3f51b5;
  1736. color: var(--mdc-theme-primary, #3f51b5); }
  1737. .mdc-temporary-drawer .mdc-list-item::before {
  1738. position: absolute;
  1739. top: 0;
  1740. left: 0;
  1741. width: 100%;
  1742. height: 100%;
  1743. -webkit-transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
  1744. transition: opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1);
  1745. border-radius: inherit;
  1746. background: currentColor;
  1747. content: "";
  1748. opacity: 0; }
  1749. .mdc-temporary-drawer .mdc-list-item:focus::before {
  1750. -webkit-transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1751. transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1752. opacity: .12; }
  1753. .mdc-temporary-drawer .mdc-list-item:active::before {
  1754. /*
  1755. Slightly darker value for visual distinction.
  1756. This allows a full base that has distinct modes.
  1757. Progressive enhancement with ripples will provide complete button spec alignment.
  1758. */
  1759. -webkit-transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1760. transition: opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1);
  1761. opacity: .18; }
  1762. .mdc-temporary-drawer .mdc-list-item:active:focus::before {
  1763. -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  1764. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  1765. .mdc-temporary-drawer::before {
  1766. display: block;
  1767. position: absolute;
  1768. top: 0;
  1769. left: 0;
  1770. width: 100%;
  1771. height: 100%;
  1772. background: rgba(0, 0, 0, 0.6);
  1773. content: "";
  1774. opacity: 0;
  1775. opacity: var(--mdc-temporary-drawer-opacity, 0);
  1776. will-change: opacity;
  1777. -webkit-box-sizing: border-box;
  1778. box-sizing: border-box; }
  1779. .mdc-temporary-drawer__drawer {
  1780. /* @alternate */
  1781. background: #fff;
  1782. background: var(--mdc-theme-background, #fff);
  1783. -webkit-box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);
  1784. box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);
  1785. left: 0;
  1786. right: initial;
  1787. height: 100%;
  1788. -webkit-transform: translateX(-107%);
  1789. transform: translateX(-107%);
  1790. -webkit-transform: translateX(calc(-100% - 20px));
  1791. transform: translateX(calc(-100% - 20px));
  1792. will-change: transform;
  1793. display: -webkit-box;
  1794. display: -ms-flexbox;
  1795. display: flex;
  1796. position: absolute;
  1797. -webkit-box-orient: vertical;
  1798. -webkit-box-direction: normal;
  1799. -ms-flex-direction: column;
  1800. flex-direction: column;
  1801. width: calc(100% - 56px);
  1802. max-width: 280px;
  1803. -webkit-box-sizing: border-box;
  1804. box-sizing: border-box;
  1805. overflow: hidden;
  1806. -ms-touch-action: none;
  1807. touch-action: none;
  1808. /* TODO(sgomes): replace with global breakpoints when we have them */ }
  1809. [dir="rtl"] .mdc-temporary-drawer__drawer, .mdc-temporary-drawer__drawer[dir="rtl"] {
  1810. left: initial;
  1811. right: 0; }
  1812. .mdc-temporary-drawer--theme-dark .mdc-temporary-drawer__drawer,
  1813. .mdc-theme--dark .mdc-temporary-drawer__drawer {
  1814. background: #303030;
  1815. /* @alternate */
  1816. color: white;
  1817. color: var(--mdc-theme-text-primary-on-dark, white); }
  1818. [dir="rtl"] .mdc-temporary-drawer .mdc-temporary-drawer__drawer,
  1819. .mdc-temporary-drawer[dir="rtl"] .mdc-temporary-drawer__drawer {
  1820. -webkit-transform: translateX(107%);
  1821. transform: translateX(107%);
  1822. -webkit-transform: translateX(calc(100% + 20px));
  1823. transform: translateX(calc(100% + 20px)); }
  1824. @media (min-width: 600px) {
  1825. .mdc-temporary-drawer__drawer {
  1826. width: calc(100% - 64px);
  1827. max-width: 320px; } }
  1828. .mdc-temporary-drawer__content {
  1829. -webkit-box-flex: 1;
  1830. -ms-flex-positive: 1;
  1831. flex-grow: 1;
  1832. margin: 0;
  1833. overflow-x: hidden;
  1834. overflow-y: auto;
  1835. -webkit-box-sizing: border-box;
  1836. box-sizing: border-box;
  1837. -webkit-overflow-scrolling: touch;
  1838. -ms-touch-action: pan-y;
  1839. touch-action: pan-y; }
  1840. .mdc-temporary-drawer__footer {
  1841. -webkit-box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  1842. box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  1843. -ms-flex-negative: 0;
  1844. flex-shrink: 0; }
  1845. .mdc-temporary-drawer--animating::before {
  1846. -webkit-transition: opacity 0.3s 0ms cubic-bezier(0, 0, 0.2, 1);
  1847. transition: opacity 0.3s 0ms cubic-bezier(0, 0, 0.2, 1); }
  1848. .mdc-temporary-drawer--animating.mdc-temporary-drawer--open .mdc-temporary-drawer__drawer {
  1849. -webkit-transition: -webkit-transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1);
  1850. transition: -webkit-transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1);
  1851. transition: transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1);
  1852. transition: transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.225s 0ms cubic-bezier(0, 0, 0.2, 1); }
  1853. .mdc-temporary-drawer--animating .mdc-temporary-drawer__drawer {
  1854. -webkit-transition: -webkit-transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1);
  1855. transition: -webkit-transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1);
  1856. transition: transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1);
  1857. transition: transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 0.195s 0ms cubic-bezier(0.4, 0, 0.6, 1); }
  1858. .mdc-temporary-drawer--open {
  1859. pointer-events: auto; }
  1860. .mdc-temporary-drawer--open::before {
  1861. opacity: 1;
  1862. opacity: var(--mdc-temporary-drawer-opacity, 1); }
  1863. .mdc-temporary-drawer--open .mdc-temporary-drawer__drawer {
  1864. -webkit-transform: none;
  1865. transform: none; }
  1866. [dir="rtl"] .mdc-temporary-drawer--open .mdc-temporary-drawer__drawer, .mdc-temporary-drawer--open[dir="rtl"] .mdc-temporary-drawer__drawer {
  1867. -webkit-transform: none;
  1868. transform: none; }
  1869. .mdc-drawer-scroll-lock {
  1870. height: 100vh;
  1871. overflow: hidden; }