You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

346 lines
5.6 KiB

  1. @import "global";
  2. @import "./base/icons.scss";
  3. html {
  4. box-sizing: border-box;
  5. background-color: mc('grey', '50');
  6. font-size: 14px;
  7. }
  8. *, *:before, *:after {
  9. box-sizing: inherit;
  10. }
  11. * {
  12. margin: 0;
  13. padding: 0;
  14. }
  15. .is-hidden {
  16. display: none;
  17. }
  18. body {
  19. margin: 0;
  20. padding: 0;
  21. font-family: "Roboto",sans-serif;
  22. line-height: 1.5;
  23. min-height: 100vh;
  24. }
  25. // LOGIN
  26. .login {
  27. background-color: mc('grey', '900');
  28. height: 100vh;
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. &-deprecated {
  33. position: absolute;
  34. top: 0;
  35. left: 0;
  36. width: 100%;
  37. background-color: mc('grey', '800');
  38. text-align: center;
  39. color: mc('grey', '50');
  40. height: 64px;
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. a {
  45. color: mc('red', '200');
  46. margin-left: 5px;
  47. }
  48. }
  49. &-error {
  50. background-color: mc('red', '500');
  51. color: #FFF;
  52. padding: 5px;
  53. border-radius: 5px;
  54. margin-bottom: 2rem;
  55. }
  56. &-dialog {
  57. width: 650px;
  58. background-color: mc('grey', '100');
  59. border-radius: 5px;
  60. text-align: center;
  61. padding: 2rem;
  62. color: mc('grey', '800');
  63. h1 {
  64. margin-bottom: 2rem;
  65. }
  66. input, select {
  67. display: block;
  68. background-color: #FFF;
  69. border: none;
  70. border-radius: 5px;
  71. width: 100%;
  72. height: 40px;
  73. padding: 0 1rem;
  74. margin: 5px 0;
  75. }
  76. button {
  77. height: 40px;
  78. display: block;
  79. width: 200px;
  80. border: none;
  81. border-radius: 5px;
  82. margin: 0 auto;
  83. background-color: mc('blue', '700');
  84. color: #FFF;
  85. cursor: pointer;
  86. margin-top: 1rem;
  87. font-weight: 600;
  88. &:hover {
  89. background-color: mc('blue', '800');
  90. }
  91. }
  92. }
  93. &-social {
  94. margin-top: 2rem;
  95. padding-top: 1rem;
  96. border-top: 1px solid mc('grey', '400');
  97. h2 {
  98. font-size: 14px;
  99. font-weight: 600;
  100. margin-bottom: 1rem;
  101. }
  102. &-icon {
  103. display: inline-flex;
  104. justify-content: center;
  105. align-items: center;
  106. border-radius: 5px;
  107. width: 54px;
  108. height: 54px;
  109. cursor: pointer;
  110. transition: opacity .2s ease;
  111. margin: .5rem .25rem;
  112. &:hover {
  113. opacity: .8;
  114. }
  115. svg {
  116. width: 24px;
  117. height: 24px;
  118. bottom: 0;
  119. path {
  120. fill: #FFF;
  121. }
  122. }
  123. @each $colorName, $color in $material-colors {
  124. &.#{$colorName} {
  125. background-color: map-get($color, '500');
  126. }
  127. }
  128. }
  129. }
  130. }
  131. // PAGE
  132. .header {
  133. background-color: #000;
  134. color: #FFF;
  135. height: 64px;
  136. padding: 0 16px;
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. &-title {
  141. margin: 0;
  142. font-size: 16px;
  143. font-weight: 500;
  144. letter-spacing: .02em;
  145. }
  146. &-deprecated {
  147. color: mc('red', '100');
  148. a {
  149. color: mc('pink', '400');
  150. }
  151. }
  152. &-login {
  153. a {
  154. text-decoration: none;
  155. color: #FFF;
  156. transition: color .3s ease;
  157. border-radius: 50%;
  158. background-color: mc('grey', '900');
  159. display: flex;
  160. width: 40px;
  161. height: 40px;
  162. justify-content: center;
  163. align-items: center;
  164. &:hover {
  165. color: mc('blue', '500');
  166. }
  167. }
  168. }
  169. }
  170. .main {
  171. display: flex;
  172. align-items: stretch;
  173. min-height: calc(100vh - 64px);
  174. height: 50vh;
  175. &-container {
  176. flex-grow: 1;
  177. }
  178. }
  179. .sidebar {
  180. width: 300px;
  181. background-color: mc('blue', '700');
  182. color: #FFF;
  183. padding: 8px 0;
  184. .sidebar-link {
  185. height: 40px;
  186. font-size: 13px;
  187. display: flex;
  188. align-items: center;
  189. padding: 0 16px;
  190. transition: background .3s cubic-bezier(.25,.8,.5,1);
  191. font-weight: 400;
  192. color: #FFF;
  193. text-decoration: none;
  194. &:hover {
  195. background: hsla(0,0%,100%,.08);
  196. }
  197. }
  198. i.material-icons {
  199. width: 56px;
  200. padding-left: 8px;
  201. }
  202. .sidebar-divider {
  203. border-top: 1px solid hsla(0,0%,100%,.12);
  204. margin: 8px 0;
  205. }
  206. .sidebar-title {
  207. font-size: 13px;
  208. height: 40px;
  209. display: flex;
  210. align-items: center;
  211. padding: 0 16px 0 24px;
  212. font-weight: 500;
  213. color: hsla(0,0%,100%,.7);
  214. }
  215. }
  216. .page-header {
  217. background-color: mc('grey', '100');
  218. padding: 0 24px;
  219. height: 90px;
  220. display: flex;
  221. align-items: center;
  222. border-bottom: 1px solid mc('grey', '200');
  223. h1 {
  224. font-size: 24px;
  225. font-weight: 400;
  226. line-height: 32px;
  227. color: mc('grey', '800');
  228. }
  229. h2 {
  230. color: mc('grey', '600');
  231. font-size: 12px;
  232. font-weight: 400;
  233. }
  234. &-left {
  235. flex-grow: 1;
  236. }
  237. &-right {
  238. flex: 0 0 308px;
  239. padding-left: 16px;
  240. &-title {
  241. color: mc('grey', '500');
  242. font-size: 12px;
  243. }
  244. &-author {
  245. color: mc('grey', '800');
  246. font-weight: 500;
  247. }
  248. &-updated {
  249. color: mc('grey', '600');
  250. font-size: 12px;
  251. }
  252. }
  253. }
  254. .page-contents {
  255. display: flex;
  256. }
  257. .toc {
  258. flex: 0 0 348px;
  259. background-color: mc('grey', '200');
  260. padding: 4px 0;
  261. &-title {
  262. font-size: 13px;
  263. height: 40px;
  264. display: flex;
  265. color: mc('blue', '600');
  266. align-items: center;
  267. font-weight: 500;
  268. padding: 0 16px;
  269. }
  270. &-tile {
  271. text-decoration: none;
  272. height: 40px;
  273. display: flex;
  274. font-size: 13px;
  275. align-items: center;
  276. padding: 0 16px;
  277. color: mc('grey', '800');
  278. transition: background-color .3s ease;
  279. &.inset {
  280. padding-left: 32px;
  281. }
  282. &:hover {
  283. background-color: rgba(0,0,0,.06);
  284. }
  285. }
  286. &-divider {
  287. border-top: 1px solid rgba(0,0,0,.12);
  288. margin: 0 0 0 24px;
  289. &.inset {
  290. margin-left: 40px;
  291. }
  292. }
  293. }
  294. @import "../themes/default/scss/app.scss";
  295. .contents {
  296. flex-grow: 1;
  297. }