diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-11-17 12:45:19 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-11-17 12:45:19 +0530 |
| commit | 2a06c26e9f80b95fd09b18c2708d1cca3d0151b2 (patch) | |
| tree | 6a04fd399068d0944bd0dbf8358cbf92354cb87e /assets/css/header.css | |
| parent | 62477e7d1b3a69bf76d413e6a4281f93b582b03d (diff) | |
assets(css): optimize using csso
https://css.github.io/csso/csso.html
Diffstat (limited to 'assets/css/header.css')
| -rw-r--r-- | assets/css/header.css | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/assets/css/header.css b/assets/css/header.css index 47b45f8..ab879c2 100644 --- a/assets/css/header.css +++ b/assets/css/header.css @@ -1,30 +1,28 @@ -/* Header --------------------------------------------------- */ .nav { display: flex; flex-wrap: wrap; justify-content: space-between; - max-width: calc(var(--nav-width) + var(--gap) * 2); + max-width: calc(var(--nav-width) + var(--gap)*2); margin-inline-start: auto; margin-inline-end: auto; - line-height: var(--header-height); + line-height: var(--header-height) } .nav a { - display: block; + display: block } .logo, .menu { display: flex; margin: auto var(--gap); - flex-wrap: inherit; + flex-wrap: inherit } .logo a { font-size: 24px; font-weight: 700; - margin-inline-end: 10px; + margin-inline-end: 10px } .logo a img { @@ -33,59 +31,56 @@ pointer-events: none; transform: translate(0, -10%); border-radius: 6px; - margin-inline-end: 8px; + margin-inline-end: 8px } .theme-toggle svg { height: 18px; user-select: none; - cursor: pointer; + cursor: pointer } body.dark #moon { vertical-align: middle; - display: none; + display: none } body:not(.dark) #sun { - display: none; + display: none } .menu { list-style: none; word-break: keep-all; overflow-x: auto; - white-space: nowrap; + white-space: nowrap } .menu li+li { - margin-inline-start: var(--gap); + margin-inline-start: var(--gap) } .menu a { - font-size: 16px; + font-size: 16px } .menu .active { font-weight: 500; - border-bottom: 2px solid currentColor; + border-bottom: 2px solid currentColor } -.lang-switch ul { - display: inline-flex; +.lang-switch li, +.lang-switch ul, +.logo-switches { + display: inline-flex } .lang-switch a { font-size: 16px; font-weight: 500; - margin: 0 8px; -} - -.lang-switch li { - display: inline-flex; + margin: 0 8px } .logo-switches { - display: inline-flex; - flex-wrap: inherit; + flex-wrap: inherit } |
