checkpoint
This commit is contained in:
+73
-6
@@ -1,12 +1,12 @@
|
||||
html, body{
|
||||
html {
|
||||
background-color: lightgreen;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: system-ui, sans-serif;
|
||||
}
|
||||
@@ -16,9 +16,17 @@ main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
|
||||
/* photos never wider than the screen (the profile photo has width="600") */
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* Navbar */
|
||||
.site-header {
|
||||
--nav-bg: rgb(255 255 255 / 0.75);
|
||||
@@ -43,6 +51,13 @@ main {
|
||||
box-shadow: 0 1px 0 rgb(15 23 42 / 0.1), 0 4px 16px rgb(15 23 42 / 0.06);
|
||||
}
|
||||
|
||||
.header-end {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.25rem 0.75rem;
|
||||
}
|
||||
|
||||
.main-nav,
|
||||
.lang-switch {
|
||||
display: flex;
|
||||
@@ -75,11 +90,62 @@ main {
|
||||
color: var(--nav-active-text);
|
||||
}
|
||||
|
||||
.site-header a:focus-visible {
|
||||
.site-header a:focus-visible,
|
||||
.logout-form button:focus-visible {
|
||||
outline: 3px solid rgb(37 99 235 / 0.5);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.logout-form {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
max-width: 14rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--nav-muted);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.logout-form button {
|
||||
padding: 0.45rem 0.9rem;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: var(--nav-text);
|
||||
font: 600 1rem/1.2 system-ui, sans-serif;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s ease;
|
||||
}
|
||||
|
||||
.logout-form button:hover {
|
||||
background: var(--nav-hover);
|
||||
}
|
||||
|
||||
/* one-line notice under the header (message sent, login failed, ...) */
|
||||
.flash {
|
||||
--flash-bg: #e0f2fe;
|
||||
--flash-text: #075985;
|
||||
|
||||
box-sizing: border-box;
|
||||
width: min(40rem, calc(100% - 2rem));
|
||||
margin: 1rem 0 0;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 0.75rem;
|
||||
background: var(--flash-bg);
|
||||
color: var(--flash-text);
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.flash-success { --flash-bg: #dcfce7; --flash-text: #166534; }
|
||||
.flash-error { --flash-bg: #fee2e2; --flash-text: #991b1b; }
|
||||
|
||||
#message-me-btn {
|
||||
--btn-bg: #2563eb;
|
||||
--btn-bg-hover: #1d4ed8;
|
||||
@@ -140,5 +206,6 @@ main {
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
#message-me-btn,
|
||||
.site-header a { transition: none; }
|
||||
.site-header a,
|
||||
.logout-form button { transition: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user