8 Commits

Author SHA1 Message Date
sefaria a6c7b063ca fix button:active scale 2026-06-15 22:58:43 +02:00
sefaria 85edb8ae02 add commented out menu bar blur code 2026-06-15 22:50:54 +02:00
sefaria 25ec79a4ae add better scroll-margin-top 2026-06-15 22:41:53 +02:00
sefaria dc93f8c6cc reset scal for pressed button 2026-06-15 22:38:29 +02:00
sefaria 7f7357a835 fix hover states for ios safari with media query 2026-06-15 22:27:58 +02:00
sefaria 9e1233ce7a comment out a:visited style 2026-06-12 12:50:56 +02:00
sefaria d663e33c87 change visited style for all buttons 2026-06-12 12:46:52 +02:00
sefaria 4811d687a0 More scroll margin for new menu bar 2026-06-12 12:31:33 +02:00
+11 -6
View File
@@ -208,6 +208,7 @@ html,
body {
margin: 0;
background: var(--color-background);
scroll-padding-top: 8rem; /* https://tetralogical.com/blog/2023/06/08/focus-in-view/ */
}
html {
@@ -235,7 +236,6 @@ h4,
h5,
h6,
p {
scroll-margin-top: 80px;
width: clamp(min(100%, 40ch), 50ch, min(100%, 60ch));
}
@@ -371,10 +371,10 @@ a:hover {
text-decoration-thickness: 0.175rem;
}
a:visited {
/* a:visited {
color: var(--color-primary);
text-decoration-thickness: 0.175rem;
}
} */
button, .button-primary, .button-secondary, .menu-button, .logo {
appearance: none;
@@ -425,6 +425,7 @@ button, .button-primary, .logo {
fill: currentColor;
}
@media (hover: hover) {
button:hover, .button-primary:hover, .button-secondary:hover, .logo:hover {
text-decoration: none;
transform: scale(1.05);
@@ -439,11 +440,12 @@ button:hover, .button-primary:hover, .logo:hover {
background: var(--color-button-secondary-hover);
color: var(--color-text-button-secondary-hover);
}
}
button:active, .button-primary:active, .button-secondary:active, .logo:active {
box-shadow: var(--shadow-button-active);
text-decoration: none;
transform: scale(1.05);
transform: scale(1.00);
}
button:active, .button-primary:active, .logo:active {
@@ -456,7 +458,7 @@ button:active, .button-primary:active, .logo:active {
color: var(--color-text-button-secondary-active);
}
button:visited, .button-primary:visited, .logo:visited {
/* button:visited, .button-primary:visited, .logo:visited {
background: var(--color-button-primary);
color: var(--color-text-button-primary);
text-decoration: none;
@@ -466,7 +468,7 @@ button:visited, .button-primary:visited, .logo:visited {
background: var(--color-button-secondary);
color: var(--color-text-button-secondary);
text-decoration: none;
}
} */
.button-primary span {
margin-right: 0.3em;
@@ -496,6 +498,9 @@ button:visited, .button-primary:visited, .logo:visited {
76%,
light-dark(var(--gradient-stop-4-light), var(--gradient-stop-4-dark)) 100%
);
/* background: rgb(255 255 255 / 0.88); */
/* backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px); */
}
.menu-bar {