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.

376 lines
6.3 KiB

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