|
| 1 | +.sidebar-layout { |
| 2 | + display: flex; |
| 3 | + min-height: 100vh; |
| 4 | + align-items: stretch; |
| 5 | + |
| 6 | + @media (min-width: $screen-md-min) { |
| 7 | + min-height: calc(100vh - #{$footer-height}); |
| 8 | + } |
| 9 | + |
| 10 | + @media (max-width: $screen-md-min) { |
| 11 | + flex-direction: column; |
| 12 | + } |
| 13 | + |
| 14 | + .sidebar { |
| 15 | + width: 25rem; |
| 16 | + display: flex; |
| 17 | + flex-direction: column; |
| 18 | + color: #fff; |
| 19 | + font-size: $font-size; |
| 20 | + background: $header-bg; |
| 21 | + background-image: url(/images/header.svg); |
| 22 | + background-position: top center; |
| 23 | + background-repeat: no-repeat; |
| 24 | + background-size: cover; |
| 25 | + |
| 26 | + @media (min-width: $screen-md-min) { |
| 27 | + position: relative; |
| 28 | + left: 0; |
| 29 | + transition: left 0.2s ease, margin-right 0.2s ease; |
| 30 | + |
| 31 | + &.sidebar-closed { |
| 32 | + left: -25rem; |
| 33 | + margin-right: -25rem; |
| 34 | + } |
| 35 | + } |
| 36 | + |
| 37 | + @media (max-width: $screen-md-min) { |
| 38 | + padding: 0; |
| 39 | + width: 100%; |
| 40 | + } |
| 41 | + |
| 42 | + .toggle-mobile { |
| 43 | + display: none; |
| 44 | + } |
| 45 | + |
| 46 | + @media (max-width: $screen-md-min) { |
| 47 | + .toggle-mobile { |
| 48 | + display: block; |
| 49 | + border: none; |
| 50 | + border-radius: 0; |
| 51 | + background-color: transparent; |
| 52 | + color: white; |
| 53 | + |
| 54 | + &:active:hover { |
| 55 | + background-color: transparent; |
| 56 | + color: white; |
| 57 | + } |
| 58 | + } |
| 59 | + } |
| 60 | + |
| 61 | + .toggleable-menu { |
| 62 | + display: flex; |
| 63 | + flex-direction: column; |
| 64 | + flex: 1; |
| 65 | + } |
| 66 | + |
| 67 | + .menus { |
| 68 | + ul { |
| 69 | + list-style-type: none; |
| 70 | + margin-left: 0; |
| 71 | + padding-left: 0; |
| 72 | + } |
| 73 | + |
| 74 | + hr { |
| 75 | + display: block; |
| 76 | + border-color: $burnt-orange; |
| 77 | + margin: 1em 0; |
| 78 | + } |
| 79 | + |
| 80 | + .dropdown .caret { |
| 81 | + position: absolute; |
| 82 | + right: 10px; |
| 83 | + top: 13px; |
| 84 | + } |
| 85 | + |
| 86 | + .dropdown-menu { |
| 87 | + .dropdown-submenu > .dropdown-menu { |
| 88 | + top: 5px !important; |
| 89 | + margin-bottom: -31px; |
| 90 | + |
| 91 | + @media (max-width: $screen-md-min) { |
| 92 | + left: 80px; |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | + } |
| 97 | + |
| 98 | + .user-menu { |
| 99 | + a { |
| 100 | + display: block; |
| 101 | + } |
| 102 | + |
| 103 | + .user-avatar { |
| 104 | + display: inline-block; |
| 105 | + width: $topbar-control-height; |
| 106 | + height: 100%; |
| 107 | + overflow: hidden; |
| 108 | + float: left; |
| 109 | + margin-right: 5px; |
| 110 | + line-height: normal; |
| 111 | + border-radius: 3px; |
| 112 | + |
| 113 | + img { |
| 114 | + width: $topbar-control-height; |
| 115 | + height: $topbar-control-height; |
| 116 | + } |
| 117 | + |
| 118 | + &.unauthenticated { |
| 119 | + background: url("../images/github32-inverse-faf2ee.svg"); |
| 120 | + height: 32px; |
| 121 | + } |
| 122 | + } |
| 123 | + } |
| 124 | + |
| 125 | + .dropdown { |
| 126 | + &.open .dropdown-toggle { |
| 127 | + background-color: $menu-bg; |
| 128 | + border: 1px solid transparent; |
| 129 | + } |
| 130 | + } |
| 131 | + |
| 132 | + .user-dropdown > .dropdown-toggle { |
| 133 | + padding: 0 1em 0 0; |
| 134 | + } |
| 135 | + |
| 136 | + .dropdown-toggle, .sign-in { |
| 137 | + height: $topbar-control-height; |
| 138 | + line-height: $topbar-control-height - 2; |
| 139 | + text-transform: uppercase; |
| 140 | + font-weight: bold; |
| 141 | + color: $bleached-orange; |
| 142 | + border: 1px solid transparent; |
| 143 | + |
| 144 | + &:hover, &:focus { |
| 145 | + background-color: $menu-hover-bg; |
| 146 | + } |
| 147 | + } |
| 148 | + |
| 149 | + .dropdown-toggle { |
| 150 | + padding: 0 1em; |
| 151 | + } |
| 152 | + |
| 153 | + .sign-in { |
| 154 | + cursor: pointer; |
| 155 | + padding: 0 .5em; |
| 156 | + } |
| 157 | + |
| 158 | + .signing-in { |
| 159 | + padding: 0 1em; |
| 160 | + height: $topbar-control-height; |
| 161 | + line-height: $topbar-control-height - 2; |
| 162 | + text-transform: uppercase; |
| 163 | + font-weight: bold; |
| 164 | + color: $bleached-orange; |
| 165 | + border: 1px solid transparent; |
| 166 | + } |
| 167 | + } |
| 168 | + |
| 169 | + .content { |
| 170 | + display: flex; |
| 171 | + flex: 1; |
| 172 | + align-items: stretch; |
| 173 | + justify-content: stretch; |
| 174 | + } |
| 175 | +} |
0 commit comments