From 69ca27e25a1670cb8c60925de0a670ea61349c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Tue, 23 Jan 2024 14:45:04 +0900 Subject: [PATCH] style: hide ubiquity dao in branding if limited screen space --- static/index.html | 2 +- static/style/inverted-style.css | 27 ++++++++++++++++++++++++--- static/style/style.css | 27 ++++++++++++++++++++++++--- 3 files changed, 49 insertions(+), 7 deletions(-) diff --git a/static/index.html b/static/index.html index c624d158..043cc64f 100644 --- a/static/index.html +++ b/static/index.html @@ -39,7 +39,7 @@ Ubiquity DAO | DevPool DirectoryUbiquity DAO | DevPool Directory
diff --git a/static/style/inverted-style.css b/static/style/inverted-style.css index 333c91eb..e69875f3 100644 --- a/static/style/inverted-style.css +++ b/static/style/inverted-style.css @@ -340,6 +340,16 @@ left: 0; background-color: #00ffff; } + + @media screen and (max-width: 804px) { + .mid { + display: none !important; + } + #branding > span { + padding: 0; + } + } + @media screen and (max-width: 1139px) { .full { display: none !important; @@ -354,11 +364,18 @@ margin: auto; margin-left: 12px; } - #branding > span { - padding: 0; + + #toolbar { + overflow-x: auto; + white-space: nowrap; + margin: 0; + padding-left: 0; + display: flex; + align-items: center; + justify-content: flex-start; } #toolbar > * { - margin: auto; + margin-left: 12px; } #toolbar > button { padding: 12px 16px; @@ -595,9 +612,13 @@ width: 100%; height: 16px; text-align: center; + min-width: 80px; } #filters input[type="text"]::placeholder { font-size: 12px; letter-spacing: 0.5px; } + button#github-login-button { + margin-left: 0; + } } diff --git a/static/style/style.css b/static/style/style.css index d2a32b13..97ec2907 100644 --- a/static/style/style.css +++ b/static/style/style.css @@ -340,6 +340,16 @@ left: 0; background-color: #0ff; } + + @media screen and (max-width: 804px) { + .mid { + display: none !important; + } + #branding > span { + padding: 0; + } + } + @media screen and (max-width: 1139px) { .full { display: none !important; @@ -354,11 +364,18 @@ margin: auto; margin-left: 12px; } - #branding > span { - padding: 0; + + #toolbar { + overflow-x: auto; + white-space: nowrap; + margin: 0; + padding-left: 0; + display: flex; + align-items: center; + justify-content: flex-start; } #toolbar > * { - margin: auto; + margin-left: 12px; } #toolbar > button { padding: 12px 16px; @@ -595,9 +612,13 @@ width: 100%; height: 16px; text-align: center; + min-width: 80px; } #filters input[type="text"]::placeholder { font-size: 12px; letter-spacing: 0.5px; } + button#github-login-button { + margin-left: 0; + } }