app-theme.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <!--
  2. @license
  3. Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
  4. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
  5. The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
  6. The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
  7. Code distributed by Google as part of the polymer project is also
  8. subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  9. -->
  10. <link rel="import" href="../bower_components/polymer/polymer.html">
  11. <style is="custom-style">
  12. /*
  13. Polymer includes a shim for CSS Custom Properties that we can use for application theming.
  14. Below, you'll find the default palette for the Share With Me layout. Feel free to play
  15. with changing the colors used or generate your own palette of colours at MaterialPalette.com.
  16. See https://www.polymer-project.org/1.0/docs/devguide/styling.html#xscope-styling-details
  17. for further information on custom CSS properties.
  18. */
  19. /* Application theme */
  20. :root {
  21. --dark-primary-color: #303F9F;
  22. --default-primary-color: #3F51B5;
  23. --light-primary-color: #C5CAE9;
  24. --text-primary-color: #ffffff; /*text/icons*/
  25. --accent-color: #FF4081;
  26. --primary-background-color: #c5cae9;
  27. --primary-text-color: #212121;
  28. --secondary-text-color: #727272;
  29. --disabled-text-color: #bdbdbd;
  30. --divider-color: #B6B6B6;
  31. /* Components */
  32. /* paper-drawer-panel */
  33. --drawer-menu-color: #ffffff;
  34. --drawer-border-color: 1px solid #ccc;
  35. --drawer-toolbar-border-color: 1px solid rgba(0, 0, 0, 0.22);
  36. /* paper-menu */
  37. --paper-menu-background-color: #fff;
  38. --menu-link-color: #111111;
  39. }
  40. /* General styles */
  41. #drawerToolbar {
  42. color: var(--secondary-text-color);
  43. background-color: var(--drawer-menu-color);
  44. border-bottom: var(--drawer-toolbar-border-color);
  45. }
  46. paper-scroll-header-panel {
  47. height: 100%;
  48. }
  49. paper-material {
  50. border-radius: 2px;
  51. height: 100%;
  52. padding: 16px 0 16px 0;
  53. width: calc(98.66% - 16px);
  54. margin: 16px auto;
  55. background: white;
  56. }
  57. paper-menu iron-icon {
  58. margin-right: 33px;
  59. opacity: 0.54;
  60. }
  61. .paper-menu > .iron-selected {
  62. color: var(--default-primary-color);
  63. }
  64. paper-menu a {
  65. @apply(--layout-horizontal);
  66. @apply(--layout-center);
  67. text-decoration: none;
  68. color: var(--menu-link-color);
  69. font-family: 'Roboto', 'Noto', sans-serif;
  70. -webkit-font-smoothing: antialiased;
  71. text-rendering: optimizeLegibility;
  72. font-size: 14px;
  73. font-weight: 400;
  74. line-height: 24px;
  75. min-height: 48px;
  76. padding: 0 16px;
  77. }
  78. paper-toolbar.tall .app-name {
  79. font-size: 40px;
  80. font-weight: 300;
  81. /* Required for main area's paper-scroll-header-panel custom condensing transformation */
  82. -webkit-transform-origin: left center;
  83. transform-origin: left center;
  84. }
  85. #mainToolbar .middle-container {
  86. height: 100%;
  87. margin-left: 48px;
  88. }
  89. #mainToolbar:not(.tall) .middle {
  90. font-size: 18px;
  91. padding-bottom: 0;
  92. }
  93. #mainToolbar .bottom {
  94. margin-left: 48px;
  95. /* Required for main area's paper-scroll-header-panel custom condensing transformation */
  96. -webkit-transform-origin: left center;
  97. transform-origin: left center;
  98. }
  99. /* Height of the scroll area */
  100. .content {
  101. height: 900px;
  102. }
  103. #toast .toast-hide-button {
  104. color: #eeff41;
  105. margin: 10px;
  106. }
  107. /* Breakpoints */
  108. /* Small */
  109. @media (max-width: 600px) {
  110. paper-material {
  111. --menu-container-display: none;
  112. width: calc(97.33% - 32px);
  113. padding-left: 16px;
  114. padding-right: 16px;
  115. }
  116. paper-toolbar.tall .app-name {
  117. font-size: 24px;
  118. font-weight: 400;
  119. }
  120. #drawer .paper-toolbar {
  121. margin-left: 16px;
  122. }
  123. }
  124. /* Tablet+ */
  125. @media (min-width: 601px) {
  126. paper-material {
  127. width: calc(98% - 46px);
  128. margin-bottom: 32px;
  129. padding-left: 30px;
  130. padding-right: 30px;
  131. }
  132. #drawer.paper-drawer-panel > [drawer] {
  133. border-right: 1px solid rgba(0, 0, 0, 0.14);
  134. }
  135. iron-pages {
  136. padding: 48px 62px;
  137. }
  138. }
  139. /* Material Design Adaptive Breakpoints */
  140. /*
  141. Below you'll find CSS media queries based on the breakpoint guidance
  142. published by the Material Design team. You can choose to use, customise
  143. or remove these breakpoints based on your needs.
  144. http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints
  145. */
  146. /* mobile-small */
  147. @media all and (min-width: 0) and (max-width: 360px) and (orientation: portrait) { }
  148. /* mobile-large */
  149. @media all and (min-width: 361px) and (orientation: portrait) { }
  150. /* mobile-small-landscape */
  151. @media all and (min-width: 0) and (max-width: 480px) and (orientation: landscape) { }
  152. /* mobile-large-landscape */
  153. @media all and (min-width: 481px) and (orientation: landscape) { }
  154. /* tablet-small-landscape */
  155. @media all and (min-width: 600px) and (max-width: 960px) and (orientation: landscape) { }
  156. /* tablet-large-landscape */
  157. @media all and (min-width: 961px) and (orientation: landscape) { }
  158. /* tablet-small */
  159. @media all and (min-width: 600px) and (orientation: portrait) { }
  160. /* tablet-large */
  161. @media all and (min-width: 601px) and (max-width: 840px) and (orientation : portrait) { }
  162. /* desktop-x-small-landscape */
  163. @media all and (min-width: 0) and (max-width: 480px) and (orientation: landscape) { }
  164. /* desktop-x-small */
  165. @media all and (min-width: 0) and (max-width: 480px) and (max-aspect-ratio: 4/3) { }
  166. /* desktop-small-landscape */
  167. @media all and (min-width: 481px) and (max-width: 840px) and (orientation: landscape) { }
  168. /* desktop-small */
  169. @media all and (min-width: 481px) and (max-width: 840px) and (max-aspect-ratio: 4/3) { }
  170. /* desktop-medium-landscape */
  171. @media all and (min-width: 841px) and (max-width: 1280px) and (orientation: landscape) { }
  172. /* desktop-medium */
  173. @media all and (min-width: 841px) and (max-width: 1280px) and (max-aspect-ratio: 4/3) { }
  174. /* desktop-large */
  175. @media all and (min-width: 1281px) and (max-width: 1600px) { }
  176. /* desktop-xlarge */
  177. @media all and (min-width: 1601px) and (max-width: 1920px) { }
  178. </style>