From 12eaa5814ef20b0910e8d64a753378b6f6797989 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 22 May 2026 00:52:16 +1000 Subject: Initial commit --- Server.Client/Pages/Component/Titlebar.razor.css | 99 ++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Server.Client/Pages/Component/Titlebar.razor.css (limited to 'Server.Client/Pages/Component/Titlebar.razor.css') diff --git a/Server.Client/Pages/Component/Titlebar.razor.css b/Server.Client/Pages/Component/Titlebar.razor.css new file mode 100644 index 0000000..58a1c0c --- /dev/null +++ b/Server.Client/Pages/Component/Titlebar.razor.css @@ -0,0 +1,99 @@ +div#navbar { + align-items: center; + background: var(--col-navbar-bg); + box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 10px; + display: flex; + height: 59px; + z-index: 100; +} + +div#navbar > h2 { + margin-left: 20px; +} + +div#navbar > a, div#navbar > p { + align-items: center; + color: white; + display: flex; + height: 100%; + padding: 0 20px 0 20px; + user-select: none; +} + +@media (hover: hover) and (pointer: fine) { + div#navbar > a:hover { + background: rgba(255, 255, 255, 0.4); + filter: none; + } +} + +div#navbar > a:active { + background: #fff; + color: var(--col-navbar-bg); +} + +div#navbar > a.menu-button { + font-size: 18pt; + margin-left: auto; +} + +p#nsfw-label { + align-self: center; + font-size: 9pt; + margin-left: auto; +} + +div#nsfw-switch { + align-self: center; + margin-left: 10px; +} + +form { + display: flex; + margin: 0 20px 0 20px; + min-width: 30%; +} + +form.login { + margin-left: auto; +} + +form.login.bad-login { + animation-iteration-count: 3; + animation-timing-function: linear; + animation: bad-login 0.2s; +} + +@keyframes bad-login { + 0% { transform: translateX(0); } + 33% { transform: translateX(-20px); } + 66% { transform: translateX(+20px); } + 100% { transform: translateX(0); } +} + +input[type="text"], input[type="password"] { + align-self: center; + background: var(--col-bg); + border-radius: 0; + color: white; + font-size: 12pt; + height: 40px !important; + margin: 0; + width: 100%; +} + +input[type="password"] { + margin-left: 20px; +} + +@media (hover: none) and (pointer: coarse) { + .desktop { + display: none !important; + } +} + +@media (hover: hover) and (pointer: fine) { + .mobile { + display: none !important; + } +} -- cgit v1.3