[5cbc4a0] | 1 | .header-content { |
---|
| 2 | padding:1em 1.5em; |
---|
| 3 | a{ |
---|
| 4 | text-decoration: none; |
---|
| 5 | } |
---|
| 6 | .description{ |
---|
| 7 | margin: 0; |
---|
| 8 | } |
---|
| 9 | } |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | /* logo ----------------------------------------------------------------------*/ |
---|
| 13 | .logo { |
---|
| 14 | .font-size(24); |
---|
| 15 | line-height: 1em; |
---|
| 16 | font-weight: 800; |
---|
| 17 | text-transform: uppercase; |
---|
| 18 | margin: 0; |
---|
| 19 | display: inline-block; |
---|
| 20 | span{ |
---|
| 21 | transition: all 250ms ease-in-out; |
---|
| 22 | } |
---|
| 23 | &:hover{ |
---|
| 24 | span{ |
---|
| 25 | color: @color-app; |
---|
| 26 | } |
---|
| 27 | } |
---|
[2a71053] | 28 | a { |
---|
| 29 | @media (max-width: @screen-m){ |
---|
| 30 | content: ""; |
---|
| 31 | display: inline-block; |
---|
| 32 | width: 34px; |
---|
| 33 | height: 34px; |
---|
| 34 | background-image: url('/static/media/img/logo-openworkouts.png'); |
---|
| 35 | background-size: 100%; |
---|
| 36 | background-repeat: no-repeat; |
---|
| 37 | span { |
---|
| 38 | display: none !important; |
---|
| 39 | } |
---|
| 40 | } |
---|
| 41 | } |
---|
[5cbc4a0] | 42 | } |
---|
| 43 | .logo-open { |
---|
| 44 | display: block; |
---|
| 45 | color: @color-app; |
---|
| 46 | } |
---|
| 47 | .logo-work, |
---|
| 48 | .logo-outs { |
---|
| 49 | color: @color-app-light; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | /* menu navigation -----------------------------------------------------------*/ |
---|
| 53 | .nav-site{ |
---|
| 54 | .font-size (13); |
---|
| 55 | |
---|
| 56 | ul { |
---|
| 57 | list-style-type: none; |
---|
| 58 | padding: 0; |
---|
| 59 | margin: 0; |
---|
| 60 | display: flex; |
---|
| 61 | flex-direction: row; |
---|
| 62 | justify-content: space-between; |
---|
[2a71053] | 63 | align-items: center; |
---|
[5cbc4a0] | 64 | } |
---|
| 65 | li{ |
---|
| 66 | border-left: 1px solid @color-main-light; |
---|
| 67 | flex-grow: 1; |
---|
| 68 | text-align: center; |
---|
[aa99826] | 69 | /* this is for the dashboard li element */ |
---|
| 70 | &:first-child { |
---|
| 71 | display: none; |
---|
| 72 | @media (min-width: @screen-m){ |
---|
| 73 | display: inline-block; |
---|
| 74 | } |
---|
| 75 | } |
---|
[5cbc4a0] | 76 | } |
---|
| 77 | a{ |
---|
| 78 | color: @color-main-medium; |
---|
| 79 | padding: 1.25em; |
---|
| 80 | display: block; |
---|
| 81 | &:hover { |
---|
| 82 | color: @color-main; |
---|
| 83 | } |
---|
| 84 | } |
---|
| 85 | .is-active { |
---|
| 86 | a { |
---|
| 87 | color: @color-main; |
---|
| 88 | } |
---|
| 89 | } |
---|
| 90 | } |
---|
| 91 | |
---|
[2a71053] | 92 | .icon-dashboard, |
---|
| 93 | .icon-profile, |
---|
| 94 | .icon-logout { |
---|
| 95 | &::before { |
---|
| 96 | content: ""; |
---|
| 97 | display: inline-block; |
---|
| 98 | } |
---|
| 99 | span { |
---|
| 100 | display: none; |
---|
| 101 | } |
---|
| 102 | @media (min-width: @screen-m){ |
---|
| 103 | &::before { |
---|
| 104 | display: none; |
---|
| 105 | } |
---|
| 106 | span{ |
---|
| 107 | display: inline-block; |
---|
| 108 | } |
---|
| 109 | } |
---|
| 110 | &:hover { |
---|
| 111 | opacity: .5; |
---|
| 112 | } |
---|
| 113 | } |
---|
| 114 | |
---|
| 115 | .icon-dashboard { |
---|
| 116 | &::before { |
---|
| 117 | content: "☰"; |
---|
| 118 | .font-size(30); |
---|
| 119 | line-height: 0em; |
---|
| 120 | position: relative; |
---|
| 121 | top: 3px; |
---|
| 122 | margin: 0; |
---|
| 123 | } |
---|
| 124 | } |
---|
| 125 | |
---|
| 126 | .icon-profile { |
---|
| 127 | padding: 1em 1.25em !important; |
---|
| 128 | &::before { |
---|
| 129 | position: relative; |
---|
| 130 | top: 3px; |
---|
| 131 | width: 20px; |
---|
| 132 | height: 20px; |
---|
| 133 | background-image: url('/static/media/img/icon-user.svg'); |
---|
| 134 | background-size: 100%; |
---|
| 135 | margin: 0; |
---|
| 136 | } |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | |
---|
| 140 | .icon-logout { |
---|
| 141 | padding: 1em 1.25em !important; |
---|
| 142 | &::before { |
---|
| 143 | position: relative; |
---|
| 144 | top: 3px; |
---|
| 145 | width: 20px; |
---|
| 146 | height: 20px; |
---|
| 147 | background-image: url('/static/media/img/icon-logout.svg'); |
---|
| 148 | background-size: 100%; |
---|
| 149 | margin: 0; |
---|
| 150 | } |
---|
| 151 | } |
---|
| 152 | |
---|
| 153 | |
---|
| 154 | |
---|
[5cbc4a0] | 155 | /* Add workout button with submenu -------------------------------------------*/ |
---|
| 156 | .add-workout { |
---|
| 157 | position: relative; |
---|
| 158 | >a{ |
---|
| 159 | color: @color-app; |
---|
| 160 | &:before{ |
---|
| 161 | content: "+"; |
---|
| 162 | font-weight: 800; |
---|
| 163 | .font-size(32); |
---|
| 164 | line-height: 0; |
---|
| 165 | position: relative; |
---|
| 166 | top: 8px; |
---|
| 167 | } |
---|
| 168 | span{ |
---|
| 169 | display: none; |
---|
| 170 | } |
---|
| 171 | &:hover{ |
---|
| 172 | background-color: @color-app; |
---|
| 173 | color:white; |
---|
| 174 | } |
---|
| 175 | } |
---|
| 176 | &:hover{ |
---|
| 177 | &:after{ |
---|
| 178 | content: ""; |
---|
| 179 | position: absolute; |
---|
| 180 | background-color: white; |
---|
| 181 | bottom: -1px; |
---|
| 182 | width: 100%; |
---|
| 183 | height: 1px; |
---|
| 184 | display: block; |
---|
| 185 | z-index: 20; |
---|
| 186 | } |
---|
| 187 | ul{ |
---|
| 188 | display: inline-block; |
---|
| 189 | } |
---|
| 190 | } |
---|
| 191 | |
---|
| 192 | /* submenu -------------------------------------------------------------- */ |
---|
| 193 | ul{ |
---|
| 194 | display: none; |
---|
| 195 | flex-direction: column; |
---|
| 196 | position: absolute; |
---|
| 197 | background-color: fade(white, 95%); |
---|
| 198 | right: -1px; |
---|
| 199 | border: 1px solid @color-main-light; |
---|
| 200 | width: 153px; |
---|
| 201 | li{ |
---|
| 202 | border-left:transparent; |
---|
| 203 | text-align: left; |
---|
| 204 | } |
---|
| 205 | a{ |
---|
| 206 | &:hover{ |
---|
| 207 | background-color: @color-main-xtralight; |
---|
| 208 | } |
---|
| 209 | } |
---|
| 210 | } |
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | /* description ---------------------------------------------------------------*/ |
---|
| 214 | .description { |
---|
| 215 | .font-size(14); |
---|
| 216 | font-weight: 300; |
---|
| 217 | letter-spacing: .025em; |
---|
| 218 | color: @color-main-medium; |
---|
| 219 | } |
---|
| 220 | |
---|
| 221 | |
---|
| 222 | /* ------------------------------ STATES ------------------------------------ */ |
---|
| 223 | |
---|
| 224 | /* when user is login --------------------------------------------------------*/ |
---|
| 225 | .is-login { |
---|
| 226 | .header-content { |
---|
| 227 | border-bottom: 1px solid @color-main-light; |
---|
| 228 | display: flex; |
---|
| 229 | padding: 0em 1.5em; |
---|
| 230 | justify-content: space-between; |
---|
| 231 | align-items: center; |
---|
| 232 | } |
---|
| 233 | .description { |
---|
| 234 | .hide; |
---|
| 235 | } |
---|
| 236 | .logo-open { |
---|
| 237 | display: inline-block; |
---|
| 238 | } |
---|
| 239 | } |
---|