header.css 8.02 KB
Newer Older
hyeryung's avatar
hyeryung committed
1 2 3 4 5 6 7 8 9 10 11
@media screen and (max-width: 1023.5px) {
  html.is-clipped--navbar {
    overflow-y: hidden;
  }
}

body {
  padding-top: var(--navbar-height);
}

.navbar {
minseok.park's avatar
minseok.park committed
12
  background: var(--nav-background);
minseok.park's avatar
minseok.park committed
13
  color: var(--color-bwg-main);
박민석's avatar
박민석 committed
14
  height: 4.5rem;
hyeryung's avatar
hyeryung committed
15 16 17 18 19
  font-size: calc(16 / var(--rem-base) * 1rem);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-index-navbar);
minseok.park's avatar
minseok.park committed
20
  max-height: 5rem;
minseok.park's avatar
minseok.park committed
21
  border-bottom: 1px solid var(--color-blue-30);
minseok.park's avatar
minseok.park committed
22
  transition: box-shadow 0.2s;
minseok.park's avatar
minseok.park committed
23 24 25 26 27 28 29 30
}

.navbar .active {
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.1), 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
}

.navbar.active {
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.1), 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
hyeryung's avatar
hyeryung committed
31 32 33 34 35 36
}

.navbar a {
  text-decoration: none;
}

minseok.park's avatar
minseok.park committed
37 38 39 40 41 42 43 44 45 46 47
.navbar-logo {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url('../img/logo_color.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 10px;
}

minseok.park's avatar
minseok.park committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
.navbar-title-contents {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar-title-contents .navbar-title {
  color: var(--color-bwg-main);
  font-size: 29px;
  font-weight: 600;
}

.navbar-title-contents .navbar-title.sub {
  font-size: 12px;
  font-weight: 300;
}

hyeryung's avatar
hyeryung committed
65 66 67 68 69 70 71 72 73 74 75 76 77
.navbar-brand {
  display: flex;
  flex: auto;
  padding-left: 1rem;
}

.navbar-brand .navbar-item {
  color: var(--navbar-font-color);
}

.navbar-brand .navbar-item:first-child {
  align-self: center;
  padding: 0;
minseok.park's avatar
minseok.park committed
78
  font-size: calc(22 / var(--rem-base) * 1.25rem);
hyeryung's avatar
hyeryung committed
79 80
  flex-wrap: wrap;
  line-height: 1;
minseok.park's avatar
minseok.park committed
81
  font-weight: 700;
hyeryung's avatar
hyeryung committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
}

.navbar-brand .navbar-item:first-child a {
  color: inherit;
  word-wrap: normal;
}

.navbar-brand .navbar-item:first-child :not(:last-child) {
  padding-right: 0.375rem;
}

.navbar-brand .navbar-item.search {
  flex: auto;
  justify-content: flex-end;
}

98 99 100 101 102 103 104 105 106 107 108
#search-field {
  position: relative;
}

#search-field > i {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #dbdbdb;
}

hyeryung's avatar
hyeryung committed
109
#search-input {
110
  box-sizing: border-box;
hyeryung's avatar
hyeryung committed
111 112 113 114
  color: #333;
  font-family: inherit;
  font-size: 0.95rem;
  width: 150px;
115
  height: 45px;
hyeryung's avatar
hyeryung committed
116
  border: 1px solid #dbdbdb;
117
  border-radius: 28px;
hyeryung's avatar
hyeryung committed
118
  line-height: 1.5;
minseok.park's avatar
minseok.park committed
119
  padding: 0 1rem !important;
hyeryung's avatar
hyeryung committed
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
}

#search-input:disabled {
  background-color: #dbdbdb;
  /* disable cursor */
  cursor: not-allowed;
  pointer-events: all !important;
}

#search-input:disabled::placeholder {
  color: #4c4c4c;
}

#search-input:focus {
  outline: none;
135 136 137 138 139
  border: 2px solid var(--color-bwg-main);
}

#search-input:focus + i {
  color: var(--color-bwg-main);
hyeryung's avatar
hyeryung committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
}

.navbar-burger {
  background: none;
  border: none;
  outline: none;
  line-height: 1;
  position: relative;
  width: 3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-width: 0;
}

.navbar-burger span {
  background-color: var(--navbar-font-color);
  height: 1.5px;
  width: 1rem;
}

.navbar-burger:not(.is-active) span {
hyeryung's avatar
hyeryung committed
165
  transition: transform ease-out 0.25s, opacity 0s 0.25s, margin-top ease-out 0.25s 0.25s;
hyeryung's avatar
hyeryung committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
}

.navbar-burger span + span {
  margin-top: 0.25rem;
}

.navbar-burger.is-active span + span {
  margin-top: -1.5px;
}

.navbar-burger.is-active span:nth-child(1) {
  transform: rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: rotate(-45deg);
}

.navbar-item,
.navbar-link {
  color: var(--navbar-menu-font-color);
  display: block;
  line-height: var(--doc-line-height);
  padding: 0.5rem 1rem;
minseok.park's avatar
minseok.park committed
194
  margin: 0 0.5rem;
hyeryung's avatar
hyeryung committed
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
}

.navbar-item.has-dropdown {
  padding: 0;
}

.navbar-item .icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.navbar-item .icon img,
.navbar-item .icon svg {
  fill: currentColor;
  width: inherit;
  height: inherit;
}

.navbar-link {
  padding-right: 2.5em;
}

.navbar-dropdown .navbar-item {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.navbar-dropdown .navbar-item.has-label {
  display: flex;
  justify-content: space-between;
}

.navbar-dropdown .navbar-item small {
  color: var(--toolbar-muted-color);
  font-size: calc(12 / var(--rem-base) * 1rem);
}

.navbar-divider {
  background-color: var(--navbar-menu-border-color);
  border: none;
  height: 1px;
  margin: 0.25rem 0;
}

.navbar .button {
  display: inline-flex;
  align-items: center;
박민석's avatar
박민석 committed
243 244
  background: var(--color-bwg-main);
  border-radius: 28px;
hyeryung's avatar
hyeryung committed
245
  height: 1.75rem;
박민석's avatar
박민석 committed
246 247
  color: var(--color-white);
  padding: 1.25rem 1.75rem 1.25rem 1.5rem;
hyeryung's avatar
hyeryung committed
248 249 250
  white-space: nowrap;
}

박민석's avatar
박민석 committed
251
.download_icon {
박민석's avatar
박민석 committed
252 253 254 255 256 257 258 259
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('../img/ico_download.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 7px;
박민석's avatar
박민석 committed
260 261 262 263 264 265 266
}

.navbar .button:hover {
  transition: 300ms ease;
  background-color: rgba(0, 114, 206, 0.8);
}

hyeryung's avatar
hyeryung committed
267 268 269 270 271 272 273 274 275
@media screen and (max-width: 768.5px) {
  .navbar-brand .navbar-item.search {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (min-width: 769px) {
  #search-input {
276
    width: 250px;
hyeryung's avatar
hyeryung committed
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
  }
}

@media screen and (max-width: 1023.5px) {
  .navbar-brand {
    height: inherit;
  }

  .navbar-brand .navbar-item {
    align-items: center;
    display: flex;
  }

  .navbar-menu {
    background: var(--navbar-menu-background);
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
    max-height: var(--body-min-height);
    overflow-y: auto;
    overscroll-behavior: none;
    padding: 0.5rem 0;
  }

  .navbar-menu:not(.is-active) {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .navbar-burger {
    display: none;
  }

  .navbar,
  .navbar-menu,
  .navbar-end {
    display: flex;
  }

  .navbar-item,
  .navbar-link {
    display: flex;
    position: relative;
    flex: none;
  }

  .navbar-item:not(.has-dropdown),
  .navbar-link {
    align-items: center;
  }

  .navbar-item.is-hoverable:hover .navbar-dropdown {
328 329 330 331
    /* display: block; */
    max-height: 300px; /* Adjust based on content */
    opacity: 1;
    visibility: visible;
hyeryung's avatar
hyeryung committed
332 333
  }

minseok.park's avatar
minseok.park committed
334 335 336 337
  .navbar-link::before {
    content: "";
    display: block;
    position: absolute;
minseok.park's avatar
minseok.park committed
338
    bottom: 1rem;
minseok.park's avatar
minseok.park committed
339 340 341 342 343 344 345 346 347 348 349
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navbar-font-color);
    transition: width 0.3s ease-in-out;
  }

  .navbar-link:hover::before {
    width: 100%;
  }

hyeryung's avatar
hyeryung committed
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
  .navbar-link::after {
    border-width: 0 0 1px 1px;
    border-style: solid;
    content: "";
    display: block;
    height: 0.5em;
    pointer-events: none;
    position: absolute;
    transform: rotate(-45deg);
    width: 0.5em;
    margin-top: -0.375em;
    right: 1.125em;
    top: 50%;
  }

  .navbar-end > .navbar-item,
  .navbar-end .navbar-link {
minseok.park's avatar
minseok.park committed
367
    color: var(--color-jet-80);
hyeryung's avatar
hyeryung committed
368 369 370 371 372 373
  }

  .navbar-end > a.navbar-item:hover,
  .navbar-end .navbar-link:hover,
  .navbar-end .navbar-item.has-dropdown:hover .navbar-link {
    color: var(--navbar-font-color);
minseok.park's avatar
minseok.park committed
374 375 376 377 378 379 380
    font-weight: 600;
  }

  .navbar-end > a.navbar-item::after {
    content: "";
    display: block;
    position: absolute;
381
    bottom: 1rem;
minseok.park's avatar
minseok.park committed
382 383 384 385 386 387 388 389 390
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navbar-font-color);
    transition: width 0.3s ease-in-out;
  }

  .navbar-end > a.navbar-item:hover::after {
    width: 100%;
hyeryung's avatar
hyeryung committed
391 392 393 394 395 396 397
  }

  .navbar-end .navbar-link::after {
    border-color: currentColor;
  }

  .navbar-dropdown {
398
    clear: both;
hyeryung's avatar
hyeryung committed
399
    background: var(--navbar-menu-background);
박민석's avatar
박민석 committed
400
    box-shadow: 0 6px 9px 0 rgba(0, 0, 0, 0.16);
hyeryung's avatar
hyeryung committed
401
    border-radius: 0 0 0.25rem 0.25rem;
402
    /* display: none; */
hyeryung's avatar
hyeryung committed
403 404 405 406
    top: 100%;
    left: 0;
    min-width: 100%;
    position: absolute;
407 408 409 410 411
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0.5s;
hyeryung's avatar
hyeryung committed
412 413 414 415 416
  }

  .navbar-dropdown .navbar-item {
    padding: 0.5rem 3rem 0.5rem 1rem;
    white-space: nowrap;
박민석's avatar
박민석 committed
417
    margin: 0;
hyeryung's avatar
hyeryung committed
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434
  }

  .navbar-dropdown .navbar-item small {
    position: relative;
    right: -2rem;
  }

  .navbar-dropdown .navbar-item:last-child {
    border-radius: inherit;
  }

  .navbar-dropdown.is-right {
    left: auto;
    right: 0;
  }

  .navbar-dropdown a.navbar-item:hover {
박민석's avatar
박민석 committed
435 436 437
    background: var(--color-bwg-main);
    color: var(--color-white);
    font-weight: 600;
hyeryung's avatar
hyeryung committed
438 439
  }
}