diff --git a/template/assets/crown.png b/template/assets/crown.png new file mode 100644 index 0000000..e24400a Binary files /dev/null and b/template/assets/crown.png differ diff --git a/template/assets/menu-thin.png b/template/assets/menu-thin.png new file mode 100644 index 0000000..0862f07 Binary files /dev/null and b/template/assets/menu-thin.png differ diff --git a/template/assets/sparkling.png b/template/assets/sparkling.png new file mode 100644 index 0000000..7407575 Binary files /dev/null and b/template/assets/sparkling.png differ diff --git a/template/css/style.css b/template/css/style.css index f27f35a..b116287 100644 --- a/template/css/style.css +++ b/template/css/style.css @@ -68,6 +68,51 @@ body { margin-left: 5px; } +.sidebar-toggler { + display: none; +} +.sidebar-toggler:checked ~ .sidebar { + transform: translateX(0); +} + +.sidebar-label { + margin-right: 9px; + cursor: pointer; +} + +.sidebar { + background-color: #131516; + position: absolute; + margin-top: 16px; + left: 0; + width: 200px; + transform: translateX(-200px); + transition: transform 250ms ease-in-out; +} +.sidebar .sidebar-list { + list-style-type: none; + margin: 0; + padding: 0; +} +.sidebar .sidebar-list .sidebar-item { + display: flex; + align-items: center; + list-style: none; + color: #d8d4cf; + text-decoration: none; + padding: 10px; + width: 100%; +} +.sidebar .sidebar-list .sidebar-item:hover { + background-color: #262a2b; +} +.sidebar .sidebar-list .sidebar-item img { + width: 30px; + height: 30px; + margin-left: 1rem; + margin-right: 10px; +} + .artwork-thumbnail { position: relative; display: inline-block; diff --git a/template/css/style.scss b/template/css/style.scss index 774d2ab..ab122c3 100644 --- a/template/css/style.scss +++ b/template/css/style.scss @@ -85,6 +85,57 @@ body { } } +.sidebar-toggler { + display: none; + + &:checked ~ .sidebar { + transform: translateX(0); + } +} + +.sidebar-label { + margin-right: 9px; + cursor: pointer; +} + +.sidebar { + background-color: $bg; + position: absolute; + margin-top: 16px; + left: 0; + width: 200px; + transform: translateX(-200px); + transition: transform 250ms ease-in-out; + + .sidebar-list { + list-style-type: none; + + margin: 0; + padding: 0; + + .sidebar-item { + display: flex; + align-items: center; + list-style: none; + color: $fg; + text-decoration: none; + padding: 10px; + width: 100%; + + &:hover { + background-color: $bg-alt; + } + + img { + width: 30px; + height: 30px; + margin-left: 1rem; + margin-right: 10px; + } + } + } +} + .artwork-thumbnail { position: relative; display: inline-block; diff --git a/template/header.html b/template/header.html index be9691f..0e781c7 100644 --- a/template/header.html +++ b/template/header.html @@ -67,6 +67,27 @@