$sidebar-width: 250px; $sidebar-bg: #f8f8fb; //rgba(#f5f5fa, 0.7); $sidebar-heading-height: 80px; $menu-color: #483973; /* --- Main -------------------------- */ .docs { max-width: 1400px; margin: 0 auto; } .main { display: block; margin-left: $sidebar-width; } .main-body { display: block; max-width: 910px; margin: 0 auto; padding: 40px; padding-top: 50px; padding-bottom: 60px; } .main-edit-pencil { float: right; display: block; margin-top: 24px !important; padding: 10px; line-height: 0em; border-radius: 6px; color: #6a737d; background: transparent; transition: .2s cubic-bezier(.3,0,.5,1); transition-property: color,background-color,border-color; svg { fill: #6a737d; } &:hover, &:focus, &:active { background-color: #F3F4F6; border-color: #1b1f2326; transition-duration: .1s; } } .markdown-body { > .main-edit-pencil + * { margin-top: 0 !important; } } .main-heading { display: block; } @media (max-width: 800px) { .main { margin-left: 0; } } /* --- Sidebar ----------------------- */ .sidebar { position: fixed; top: 0; width: $sidebar-width; height: 100vh; background: $sidebar-bg; border-right: 1px solid darken($sidebar-bg, 3%); z-index: 2; } .sidebar:after { content: ""; position: absolute; top: 0; left: -10000px; right: 100%; bottom: 0; background: $sidebar-bg; } .sidebar-heading { height: $sidebar-heading-height; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; font-family: 'Roboto', sans-serif; font-size: 1.5em; font-weight: 900; letter-spacing: -0.5px; } .sidebar-heading a { color: #232035; text-decoration: none; } .sidebar-heading button { flex: 0; padding: 9px 25px; font-size: 14px; font-weight: 600; line-height: 1.5em; color: #fff; background-color: #483973; border-radius: 3px; border: 0; box-shadow: 0 4px 6px rgba(50,50,93,0.11), 0 1px 3px rgba(0,0,0,0.08); transition: box-shadow 0.2s ease; cursor: pointer; } .sidebar-heading button:hover { box-shadow: 0 4px 6px rgba(50,50,93,0.3), 0 1px 3px rgba(0,0,0,0.3); } .sidebar-close, .sidebar-heading, .navigation-list-link { padding-left: 30px; padding-right: 30px; } .sidebar-nav { position: relative; z-index: 11; padding: 0px 1px; } /* sidebar heading mobile */ .sidebar-heading-mobile { border-bottom: 1px solid #eee; } .sidebar-close { display: flex; align-items: center; height: $sidebar-heading-height - 10px; cursor: pointer; padding: 0 25px; } .sidebar-close img { width: 22px; margin-left: -2px; } @media (max-width: 800px) { .sidebar { position: static; top: auto; width: 100%; height: auto; background: none; } .sidebar-nav { position: fixed; left: -$sidebar-width; top: 0; width: $sidebar-width; height: 100vh; background: $sidebar-bg; border-right: 1px solid darken($sidebar-bg, 3%); box-shadow: rgba(0, 0, 0, 0.14) 0px 0px 4px, rgba(0, 0, 0, 0.28) 0px 4px 8px; transition: transform 400ms cubic-bezier(0.4, 0, 0, 1); transform: translate(0, 0); } .sidebar-heading, .sidebar-close, .navigation-list-link { padding-left: 40px; padding-right: 40px; } .sidebar-overlay { position: fixed; top: 0; left: 0; right: 100%; bottom: 0; z-index: 0; opacity: 0; background-color: rgba(24, 48, 85, 0.3); transition: opacity 250ms ease-in-out, right 0s 250ms; } .nav-open .sidebar-nav { transform: translate($sidebar-width, 0); } .nav-open .sidebar-overlay { transition: opacity 250ms ease-in-out; right: 0; opacity: 1; } } @media (min-width: 801px) { .mobile-only { display: none; } .sidebar-overlay { display: none; } } /* --- Navigation -------------------- */ .navigation-list { padding: 20px 0; display: block; list-style: none; } .navigation-list-link { position: relative; display: block; padding-top: 5px; padding-bottom: 5px; color: $menu-color; font-size: 1.1em; text-decoration: none !important; } .navigation-list-link.active, .navigation-list-link:hover { text-decoration: none !important; color: darken($menu-color, 40%); } .navigation-list-link:before { content: ""; position: absolute; display: block; top: 50%; left: 0; height: 18px; width: 4px; margin-top: -9px; background-color: transparent; border-radius: 3px; transform: translateX(-3px); transition: all 0.2s ease; } .navigation-list-link.active:before, .navigation-list-link:hover:before { background-color: $menu-color; transform: translateX(0); } /* submenu */ .navigation-list ul { padding-left: 0; display: block; list-style: none; } .navigation-list ul .navigation-list-link { padding-left: 50px; } /* aux navigation */ .navigation-list-aux { padding: 0 0 20px; display: block; list-style: none; } .navigation-list-aux .navigation-list-link:before { display: none; }