123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- @import "global";
- @import "./base/fonts.scss";
- @import "./base/icons.scss";
- html {
- box-sizing: border-box;
- background-color: mc('grey', '50');
- font-size: 14px;
- }
- *, *:before, *:after {
- box-sizing: inherit;
- }
- * {
- margin: 0;
- padding: 0;
- }
- .is-hidden {
- display: none;
- }
- body {
- margin: 0;
- padding: 0;
- font-family: "Roboto",sans-serif;
- line-height: 1.5;
- min-height: 100vh;
- }
- .header {
- background-color: #000;
- color: #FFF;
- height: 64px;
- padding: 0 16px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- &-title {
- margin: 0;
- font-size: 16px;
- font-weight: 500;
- letter-spacing: .02em;
- }
- &-deprecated {
- color: mc('red', '100');
- a {
- color: mc('pink', '400');
- }
- }
- &-login {
- a {
- text-decoration: none;
- color: #FFF;
- transition: color .3s ease;
- &:hover {
- color: mc('blue', '500');
- }
- }
- }
- }
- .main {
- display: flex;
- align-items: stretch;
- min-height: calc(100vh - 64px);
- height: 50vh;
- &-container {
- flex-grow: 1;
- }
- }
- .sidebar {
- width: 300px;
- background-color: mc('blue', '700');
- color: #FFF;
- padding: 8px 0;
- .sidebar-link {
- height: 40px;
- font-size: 13px;
- display: flex;
- align-items: center;
- padding: 0 16px;
- transition: background .3s cubic-bezier(.25,.8,.5,1);
- font-weight: 400;
- color: #FFF;
- text-decoration: none;
- &:hover {
- background: hsla(0,0%,100%,.08);
- }
- }
- i.material-icons {
- width: 56px;
- padding-left: 8px;
- }
- .sidebar-divider {
- border-top: 1px solid hsla(0,0%,100%,.12);
- margin: 8px 0;
- }
- .sidebar-title {
- font-size: 13px;
- height: 40px;
- display: flex;
- align-items: center;
- padding: 0 16px 0 24px;
- font-weight: 500;
- color: hsla(0,0%,100%,.7);
- }
- }
- .page-header {
- background-color: mc('grey', '100');
- padding: 0 24px;
- height: 90px;
- display: flex;
- align-items: center;
- border-bottom: 1px solid mc('grey', '200');
- h1 {
- font-size: 24px;
- font-weight: 400;
- line-height: 32px;
- color: mc('grey', '800');
- }
- h2 {
- color: mc('grey', '600');
- font-size: 12px;
- font-weight: 400;
- }
- &-left {
- flex-grow: 1;
- }
- &-right {
- flex: 0 0 324px;
- padding-left: 16px;
- &-title {
- color: mc('grey', '500');
- font-size: 12px;
- }
- &-author {
- color: mc('grey', '800');
- font-weight: 500;
- }
- &-updated {
- color: mc('grey', '600');
- font-size: 12px;
- }
- }
- }
- .page-contents {
- display: flex;
- }
- .toc {
- flex: 0 0 348px;
- background-color: mc('grey', '200');
- padding: 4px 0;
- &-title {
- font-size: 13px;
- height: 40px;
- display: flex;
- color: mc('blue', '600');
- align-items: center;
- font-weight: 500;
- padding: 0 16px;
- }
- &-tile {
- text-decoration: none;
- height: 40px;
- display: flex;
- font-size: 13px;
- align-items: center;
- padding: 0 16px;
- color: mc('grey', '800');
- transition: background-color .3s ease;
- &.inset {
- padding-left: 32px;
- }
- &:hover {
- background-color: rgba(0,0,0,.06);
- }
- }
- &-divider {
- border-top: 1px solid rgba(0,0,0,.12);
- margin: 0 0 0 24px;
- &.inset {
- margin-left: 40px;
- }
- }
- }
- @import "../themes/default/scss/app.scss";
- .contents {
- flex-grow: 1;
- }
|