legacy.scss 5.6 KB

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