legacy.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. .header {
  27. background-color: #000;
  28. color: #FFF;
  29. height: 64px;
  30. padding: 0 16px;
  31. display: flex;
  32. justify-content: space-between;
  33. align-items: center;
  34. &-title {
  35. margin: 0;
  36. font-size: 16px;
  37. font-weight: 500;
  38. letter-spacing: .02em;
  39. }
  40. &-deprecated {
  41. color: mc('red', '100');
  42. a {
  43. color: mc('pink', '400');
  44. }
  45. }
  46. &-login {
  47. a {
  48. text-decoration: none;
  49. color: #FFF;
  50. transition: color .3s ease;
  51. &:hover {
  52. color: mc('blue', '500');
  53. }
  54. }
  55. }
  56. }
  57. .main {
  58. display: flex;
  59. align-items: stretch;
  60. min-height: calc(100vh - 64px);
  61. height: 50vh;
  62. &-container {
  63. flex-grow: 1;
  64. }
  65. }
  66. .sidebar {
  67. width: 300px;
  68. background-color: mc('blue', '700');
  69. color: #FFF;
  70. padding: 8px 0;
  71. .sidebar-link {
  72. height: 40px;
  73. font-size: 13px;
  74. display: flex;
  75. align-items: center;
  76. padding: 0 16px;
  77. transition: background .3s cubic-bezier(.25,.8,.5,1);
  78. font-weight: 400;
  79. color: #FFF;
  80. text-decoration: none;
  81. &:hover {
  82. background: hsla(0,0%,100%,.08);
  83. }
  84. }
  85. i.material-icons {
  86. width: 56px;
  87. padding-left: 8px;
  88. }
  89. .sidebar-divider {
  90. border-top: 1px solid hsla(0,0%,100%,.12);
  91. margin: 8px 0;
  92. }
  93. .sidebar-title {
  94. font-size: 13px;
  95. height: 40px;
  96. display: flex;
  97. align-items: center;
  98. padding: 0 16px 0 24px;
  99. font-weight: 500;
  100. color: hsla(0,0%,100%,.7);
  101. }
  102. }
  103. .page-header {
  104. background-color: mc('grey', '100');
  105. padding: 0 24px;
  106. height: 90px;
  107. display: flex;
  108. align-items: center;
  109. border-bottom: 1px solid mc('grey', '200');
  110. h1 {
  111. font-size: 24px;
  112. font-weight: 400;
  113. line-height: 32px;
  114. color: mc('grey', '800');
  115. }
  116. h2 {
  117. color: mc('grey', '600');
  118. font-size: 12px;
  119. font-weight: 400;
  120. }
  121. &-left {
  122. flex-grow: 1;
  123. }
  124. &-right {
  125. flex: 0 0 324px;
  126. padding-left: 16px;
  127. &-title {
  128. color: mc('grey', '500');
  129. font-size: 12px;
  130. }
  131. &-author {
  132. color: mc('grey', '800');
  133. font-weight: 500;
  134. }
  135. &-updated {
  136. color: mc('grey', '600');
  137. font-size: 12px;
  138. }
  139. }
  140. }
  141. .page-contents {
  142. display: flex;
  143. }
  144. .toc {
  145. flex: 0 0 348px;
  146. background-color: mc('grey', '200');
  147. padding: 4px 0;
  148. &-title {
  149. font-size: 13px;
  150. height: 40px;
  151. display: flex;
  152. color: mc('blue', '600');
  153. align-items: center;
  154. font-weight: 500;
  155. padding: 0 16px;
  156. }
  157. &-tile {
  158. text-decoration: none;
  159. height: 40px;
  160. display: flex;
  161. font-size: 13px;
  162. align-items: center;
  163. padding: 0 16px;
  164. color: mc('grey', '800');
  165. transition: background-color .3s ease;
  166. &.inset {
  167. padding-left: 32px;
  168. }
  169. &:hover {
  170. background-color: rgba(0,0,0,.06);
  171. }
  172. }
  173. &-divider {
  174. border-top: 1px solid rgba(0,0,0,.12);
  175. margin: 0 0 0 24px;
  176. &.inset {
  177. margin-left: 40px;
  178. }
  179. }
  180. }
  181. @import "../themes/default/scss/app.scss";
  182. .contents {
  183. flex-grow: 1;
  184. }