Files
glagolify/popup.css
T

246 lines
4.0 KiB
CSS

@font-face {
font-family: "Glagolify Shafarik Round";
src: url("fonts/Shafarik-Regular.ttf") format("truetype");
size-adjust: 115%;
}
@font-face {
font-family: "Glagolify Noto Sans Glagolitic";
src: url("fonts/NotoSansGlagolitic-Regular.ttf") format("truetype");
}
@font-face {
font-family: "Glagolify Shafarik Angular";
src: url("fonts/Shafarik-Regular.ttf") format("truetype");
size-adjust: 115%;
font-feature-settings: "ss03";
}
@font-face {
font-family: "Glagolify Shafarik Missal Angular";
src: url("fonts/Shafarik-Regular.ttf") format("truetype");
size-adjust: 115%;
font-feature-settings: "ss04";
}
:root {
color-scheme: light dark;
font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
body {
width: 320px;
margin: 0;
color: #22202b;
background: #fbfaff;
}
main {
padding: 20px;
}
header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 18px;
}
header img {
flex: 0 0 auto;
filter: drop-shadow(0 3px 7px rgb(49 30 93 / 20%));
}
h1,
p {
margin: 0;
}
h1 {
font-size: 18px;
line-height: 1.2;
letter-spacing: -0.01em;
}
header p {
margin-top: 2px;
color: #6d6878;
font-size: 12px;
}
.font-style {
min-width: 0;
margin: 0 0 14px;
border: 0;
padding: 0;
}
.font-style legend {
margin-bottom: 7px;
padding: 0;
color: #5f596a;
font-size: 12px;
font-weight: 650;
}
.style-options {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.style-option {
position: relative;
min-width: 0;
}
.style-option input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.style-option > span {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
min-height: 56px;
border: 1px solid #d9d2e5;
border-radius: 9px;
padding: 7px 9px;
background: #f5f2fa;
color: #50495b;
cursor: pointer;
transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.style-option > span > span:first-child {
min-width: 0;
line-height: 1.25;
}
.style-option input:checked + span {
border-color: #6842b8;
background: #eee7fb;
color: #4c288f;
}
.style-option input:focus-visible + span {
outline: 3px solid #bba2ec;
outline-offset: 2px;
}
.style-option input:disabled + span {
cursor: wait;
opacity: 0.65;
}
.glyph {
font-size: 18px;
line-height: 1;
white-space: nowrap;
}
.round-glyph {
font-family: "Glagolify Shafarik Round";
}
.angular-sans-glyph {
font-family: "Glagolify Noto Sans Glagolitic";
}
.angular-glyph {
font-family: "Glagolify Shafarik Angular";
}
.missal-angular-glyph {
font-family: "Glagolify Shafarik Missal Angular";
}
.status {
min-height: 20px;
margin-bottom: 10px;
color: #5f596a;
font-size: 13px;
}
button {
width: 100%;
min-height: 42px;
border: 0;
border-radius: 10px;
padding: 10px 16px;
color: #fff;
background: #6842b8;
box-shadow: 0 5px 14px rgb(77 45 146 / 25%);
font: inherit;
font-weight: 650;
cursor: pointer;
transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
button:hover:not(:disabled) {
background: #56329e;
box-shadow: 0 7px 17px rgb(77 45 146 / 31%);
transform: translateY(-1px);
}
button:active:not(:disabled) {
transform: translateY(0);
}
button:focus-visible {
outline: 3px solid #bba2ec;
outline-offset: 2px;
}
button[aria-pressed="true"] {
background: #34303d;
box-shadow: 0 5px 14px rgb(24 20 32 / 22%);
}
button:disabled {
color: #a29da9;
background: #e7e3eb;
box-shadow: none;
cursor: not-allowed;
}
@media (prefers-color-scheme: dark) {
body {
color: #f4f0fa;
background: #201d26;
}
header p,
.status {
color: #bdb5c7;
}
.font-style legend {
color: #bdb5c7;
}
.style-option > span {
border-color: #4a4452;
background: #29252f;
color: #c9c1d1;
}
.style-option input:checked + span {
border-color: #9d7cdd;
background: #392d4d;
color: #e2d4ff;
}
button:disabled {
color: #77717e;
background: #343039;
}
}