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.

377 lines
6.3 KiB

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