Files
libre-study/src/App.css
T

1317 lines
21 KiB
CSS

.app-shell {
display: grid;
grid-template-columns: 58px minmax(0, 1fr);
min-height: 100vh;
background: #ece9df;
color: #202124;
}
.app-shell.menu-open .reader {
filter: blur(1.5px) brightness(0.62) saturate(0.72);
}
.tool-rail {
display: flex;
flex-direction: column;
gap: 12px;
align-items: center;
position: relative;
z-index: 20;
width: 58px;
padding: 18px 10px;
background: #1f231f;
border-right: 1px solid #d1cab9;
box-sizing: border-box;
transition: width 160ms ease, box-shadow 160ms ease;
overflow: hidden;
}
.tool-rail:hover,
.tool-rail:focus-within {
width: 270px;
align-items: stretch;
box-shadow: 18px 0 40px rgba(17, 20, 17, 0.26);
}
.brand-mark {
display: grid;
flex: 0 0 auto;
place-items: center;
width: 42px;
height: 42px;
border-radius: 8px;
background: #d6a84f;
color: #161711;
font-weight: 800;
font-size: 15px;
}
.tool-rail button {
display: flex;
gap: 12px;
align-items: center;
width: 38px;
height: 38px;
padding: 0;
border-color: #3c4239;
background: #2c302a;
color: #f6f3eb;
white-space: nowrap;
}
.tool-rail:hover button,
.tool-rail:focus-within button {
width: 100%;
padding: 0 10px;
}
.menu-button {
flex: 0 0 auto;
justify-content: center;
align-self: center;
}
.menu-button span {
display: block;
width: 16px;
height: 2px;
border-radius: 999px;
background: currentColor;
}
.menu-button {
flex-direction: column;
gap: 4px;
}
.tool-rail:hover .menu-button,
.tool-rail:focus-within .menu-button {
width: 42px;
padding: 0;
}
.app-identity {
display: flex;
gap: 12px;
align-items: center;
min-height: 42px;
}
.rail-icon {
display: grid;
flex: 0 0 18px;
place-items: center;
font-weight: 800;
}
.rail-copy {
display: none;
min-width: 0;
text-align: left;
}
.tool-rail:hover .rail-copy,
.tool-rail:focus-within .rail-copy {
display: grid;
}
.rail-copy strong,
.rail-copy small {
overflow: hidden;
text-overflow: ellipsis;
}
.rail-copy small {
color: #b9c0b4;
font-size: 11px;
font-weight: 600;
}
.rail-bottom {
margin-top: auto;
}
.rail-description {
display: none;
margin: 0;
padding: 12px;
border: 1px solid #3c4239;
border-radius: 6px;
background: #252b25;
color: #d9ddd4;
font-size: 13px;
line-height: 1.45;
}
.tool-rail:hover .rail-description,
.tool-rail:focus-within .rail-description {
display: block;
}
.reader {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
gap: 16px;
min-width: 0;
height: 100vh;
padding: 18px;
box-sizing: border-box;
transition: filter 160ms ease;
}
.top-bar {
display: grid;
grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.1fr) minmax(300px, 0.65fr);
gap: 14px;
align-items: end;
}
.version-block h1,
.study-margin h2,
.notes-workspace h2,
.strong-focus h4 {
margin: 0;
letter-spacing: 0;
}
.version-block h1 {
margin-top: 3px;
font-size: 24px;
line-height: 1.15;
}
.eyebrow {
color: #657061;
font-size: 12px;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
}
.search-box {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
}
input,
select,
textarea {
width: 100%;
min-width: 0;
border: 1px solid #bdb8aa;
border-radius: 6px;
padding: 10px 12px;
background: #fffef9;
color: #202124;
font: inherit;
font-size: 14px;
box-sizing: border-box;
}
textarea {
min-height: 420px;
resize: none;
line-height: 1.5;
}
button {
border: 1px solid transparent;
border-radius: 6px;
padding: 10px 12px;
background: #d6a84f;
color: #141510;
font: inherit;
font-size: 14px;
font-weight: 700;
cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 2px solid #5d7f71;
outline-offset: 2px;
}
.page-controls {
display: grid;
grid-template-columns: minmax(130px, 1.1fr) minmax(130px, 1.3fr) minmax(86px, 0.7fr) minmax(78px, 0.6fr) minmax(120px, 0.9fr);
gap: 8px;
align-items: end;
}
.page-controls label {
display: grid;
gap: 4px;
color: #657061;
font-size: 11px;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
}
.study-desk {
display: grid;
grid-template-columns: minmax(720px, 1fr);
gap: 16px;
min-height: 0;
}
.study-desk.page,
.study-desk.study,
.study-desk.compare {
grid-template-columns: minmax(680px, 1160px);
justify-content: center;
}
.study-desk.notes {
grid-template-columns: minmax(760px, 1.42fr) minmax(320px, 0.58fr);
}
.page-system,
.notes-workspace,
.status-panel {
border: 1px solid #d4cdbd;
border-radius: 8px;
background: #fffef8;
box-shadow: 0 12px 30px rgba(44, 48, 42, 0.08);
}
.page-system {
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr) auto auto auto;
min-height: 0;
overflow: visible;
perspective: 1400px;
}
.page-system.study,
.page-system.notes {
grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
}
.page-system.compare-system {
display: block;
}
.bible-page {
display: grid;
grid-column: 1;
grid-template-rows: auto minmax(0, 1fr);
min-height: 0;
padding: 26px 30px;
}
.bible-page header,
.page-turner {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: center;
color: #6b675d;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.page-turner {
grid-column: 1;
padding: 14px 30px;
border-top: 1px solid #e8e2d4;
background: #fffef8;
text-transform: none;
}
.page-turner span {
color: #6b675d;
font-size: 13px;
font-weight: 700;
}
.page-columns {
column-count: 2;
column-gap: 34px;
column-rule: 1px solid #eee7d8;
overflow: hidden;
padding: 22px 0;
font-family: Georgia, 'Times New Roman', serif;
}
.page-system.turn-forward .bible-page {
animation: page-turn-forward 480ms ease;
}
.page-system.turn-back .bible-page {
animation: page-turn-back 480ms ease;
}
.page-verse {
break-inside: avoid;
margin: 0 0 9px;
padding: 3px 4px;
color: #1f211e;
font-size: 18px;
line-height: 1.58;
cursor: pointer;
}
.page-verse.selected {
border-radius: 5px;
background: #f4ecd8;
}
.page-verse sup {
margin-right: 5px;
color: #8a6d2e;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 10px;
font-weight: 800;
}
.strong-token {
display: inline;
position: relative;
cursor: pointer;
}
.strong-token.highlight,
.strong-token.numbers {
border-radius: 3px;
box-shadow: inset 0 -0.45em 0 rgba(214, 168, 79, 0.22);
}
.strong-token:hover,
.strong-token:focus-visible {
box-shadow: inset 0 -1.1em 0 rgba(214, 168, 79, 0.34);
outline: none;
}
.strong-token.active {
box-shadow: inset 0 -1.1em 0 rgba(47, 111, 94, 0.3);
}
.strong-code {
margin-left: 2px;
color: #735c0f;
font-family: ui-sans-serif, system-ui, sans-serif;
font-size: 9px;
font-weight: 800;
line-height: 0;
vertical-align: super;
}
.strong-token.active .strong-code {
color: #225446;
}
.study-margin,
.notes-workspace {
min-height: 0;
overflow: auto;
padding: 16px;
}
.study-margin {
grid-column: 2;
grid-row: 1 / -1;
min-width: 0;
border-left: 1px solid #e4dece;
background: #fbf8ef;
}
.panel-header {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
padding-bottom: 12px;
border-bottom: 1px solid #e4e0d6;
}
.panel-header h2,
.notes-workspace h2 {
font-size: 18px;
}
.panel-header span,
.margin-reference,
.translit {
color: #657061;
font-size: 13px;
line-height: 1.4;
}
.margin-reference {
margin: 12px 0;
font-weight: 800;
}
.original-language-verse {
display: grid;
gap: 8px;
min-width: 0;
margin: 0 0 14px;
padding: 12px;
overflow: hidden;
border: 1px solid #dfd6c2;
border-radius: 6px;
background: #fffdf6;
}
.margin-section-header {
display: flex;
gap: 8px;
align-items: center;
justify-content: space-between;
}
.collapse-button,
.mini-settings {
border: 0;
background: transparent;
color: #657061;
font-size: 11px;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
}
.collapse-button {
padding: 0;
text-align: left;
}
.collapse-button::before {
margin-right: 5px;
color: #735c0f;
content: 'v';
}
.mini-settings {
width: auto;
height: auto;
padding: 3px 6px;
border: 1px solid #d8cfbf;
border-radius: 4px;
background: #fbf8ef;
}
.original-language-verse h3 {
margin: 0;
color: #657061;
font-size: 11px;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
}
.original-language-verse p {
min-width: 0;
margin: 0;
}
.lemma-line-text {
display: block;
max-width: 100%;
overflow-wrap: anywhere;
color: #1f211e;
font-family: Georgia, 'Times New Roman', serif;
font-size: 20px;
line-height: 1.7;
white-space: normal;
word-break: normal;
}
.lemma-line-text[dir='rtl'] {
direction: rtl;
text-align: right;
unicode-bidi: isolate;
}
.lemma-word {
display: inline;
overflow-wrap: anywhere;
padding: 0 2px;
border-radius: 3px;
cursor: pointer;
}
.lemma-word + .lemma-word {
margin-inline-start: 0.35em;
}
.lemma-word:hover,
.lemma-word:focus-visible,
.lemma-word.active {
background: rgba(47, 111, 94, 0.16);
outline: none;
}
.english-strong-line {
display: grid;
gap: 8px;
margin: 0 0 14px;
padding: 12px;
border: 1px solid #dfd6c2;
border-radius: 6px;
background: #fffdf6;
}
.linked-line-text {
margin: 0;
color: #202124;
line-height: 1.65;
overflow-wrap: anywhere;
}
.linked-word {
display: inline;
padding: 0 2px;
border-radius: 3px;
cursor: pointer;
overflow-wrap: anywhere;
}
.linked-word + .linked-word {
margin-inline-start: 0.35em;
}
.linked-word:hover,
.linked-word:focus-visible,
.linked-word.active {
background: rgba(214, 168, 79, 0.25);
outline: none;
}
.strong-focus {
display: grid;
gap: 9px;
padding: 16px;
border: 1px solid #b9cabf;
border-radius: 8px;
background: #eef6f1;
}
.strong-focus div {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
color: #657061;
font-size: 12px;
}
.strong-focus > .margin-section-header span {
color: #657061;
font-size: 12px;
}
.strong-focus h4 {
color: #1f211e;
font-size: 22px;
}
.strong-focus p {
margin: 0;
color: #3f443d;
font-size: 14px;
line-height: 1.5;
}
.strong-focus button {
justify-self: start;
margin-top: 4px;
background: #2f6f5e;
color: #ffffff;
}
.notes-workspace {
display: flex;
flex-direction: column;
gap: 14px;
}
.session-manager {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
gap: 8px;
align-items: end;
}
.session-manager label {
display: grid;
gap: 4px;
color: #657061;
font-size: 11px;
font-weight: 800;
letter-spacing: 0;
text-transform: uppercase;
}
.tag-editor,
.reader-tags {
display: flex;
gap: 8px;
}
.reader-tags {
flex-wrap: wrap;
}
.reader-tags span {
border-radius: 999px;
color: white;
font-size: 12px;
font-weight: 700;
padding: 5px 9px;
}
.footnote-strip,
.status-panel {
padding: 14px 18px;
color: #3f443d;
}
.footnote-strip {
display: flex;
grid-column: 1;
gap: 12px;
align-items: flex-start;
min-height: 50px;
border-top: 1px solid #e7dfcf;
background: #fffef8;
box-shadow: inset 0 8px 16px rgba(44, 48, 42, 0.03);
}
.footnote-strip strong {
flex: 0 0 auto;
}
.footnote-strip span {
color: #657061;
}
.footnote-list {
display: grid;
gap: 5px;
}
.footnote-list p {
margin: 0;
color: #3f443d;
font-size: 14px;
line-height: 1.42;
cursor: pointer;
}
.footnote-list p span {
display: inline-block;
margin-right: 7px;
color: #735c0f;
font-weight: 800;
}
.footnote-list p:hover,
.footnote-list p:focus-visible {
color: #202124;
outline: none;
text-decoration: underline;
text-decoration-color: #d6a84f;
text-underline-offset: 3px;
}
.note-helper {
display: grid;
grid-template-columns: 74px minmax(0, 1fr);
gap: 12px;
align-items: center;
margin-top: auto;
padding: 12px;
border-color: #ded6c7;
background: #fbf8ef;
color: #202124;
text-align: left;
}
.note-helper strong,
.note-helper small {
display: block;
}
.note-helper small {
color: #657061;
font-size: 12px;
}
.note-helper-figure {
position: relative;
display: block;
width: 64px;
height: 58px;
}
.helper-head,
.helper-body,
.helper-notebook,
.helper-pencil {
position: absolute;
display: block;
}
.helper-head {
top: 2px;
left: 20px;
width: 26px;
height: 22px;
border: 2px solid #252821;
border-radius: 8px;
background: #d6a84f;
}
.helper-head::before,
.helper-head::after {
position: absolute;
top: 8px;
width: 4px;
height: 4px;
border-radius: 50%;
background: #252821;
content: '';
}
.helper-head::before {
left: 6px;
}
.helper-head::after {
right: 6px;
}
.helper-body {
top: 27px;
left: 17px;
width: 32px;
height: 22px;
border-radius: 8px 8px 5px 5px;
background: #2f6f5e;
}
.helper-notebook {
right: 2px;
bottom: 3px;
width: 34px;
height: 22px;
border: 2px solid #c9baa0;
border-radius: 3px;
background: #fffef8;
transform: rotate(-4deg);
}
.helper-notebook::before {
position: absolute;
top: 6px;
left: 5px;
width: 20px;
height: 2px;
background: #d8cfbf;
box-shadow: 0 5px 0 #d8cfbf;
content: '';
}
.helper-pencil {
right: 18px;
bottom: 21px;
width: 24px;
height: 4px;
border-radius: 999px;
background: #735c0f;
transform-origin: right center;
animation: helper-writing 900ms ease-in-out infinite;
}
.book-tabs {
display: grid;
grid-column: 1;
grid-template-columns: repeat(24, minmax(0, 1fr));
gap: 3px;
align-items: flex-start;
padding: 0 16px 10px;
overflow: hidden;
background: #ece9df;
}
.book-tabs.turn-forward {
animation: tab-window-forward 320ms ease;
}
.book-tabs.turn-back {
animation: tab-window-back 320ms ease;
}
.book-tabs button {
min-width: 0;
height: 30px;
padding: 4px 3px;
border-color: #c8bea9;
border-top: 0;
border-radius: 0 0 7px 7px;
background: #efe4c9;
color: #4c422f;
font-size: 10px;
font-weight: 800;
line-height: 1.05;
white-space: normal;
overflow-wrap: anywhere;
box-shadow: 0 5px 10px rgba(44, 48, 42, 0.08);
}
.book-tabs button:nth-child(4n + 2) {
height: 34px;
}
.book-tabs button:nth-child(4n + 3) {
height: 27px;
}
.book-tabs button:hover,
.book-tabs button:focus-visible,
.book-tabs button.active {
background: #d6a84f;
color: #151510;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 40;
display: grid;
place-items: center;
padding: 24px;
background: rgba(18, 21, 18, 0.46);
}
.modal-panel {
display: grid;
gap: 18px;
width: min(920px, 100%);
max-height: calc(100vh - 48px);
overflow: auto;
padding: 22px;
border: 1px solid #d4cdbd;
border-radius: 8px;
background: #fffef8;
box-shadow: 0 22px 60px rgba(18, 21, 18, 0.3);
}
.modal-panel > header {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: start;
padding-bottom: 14px;
border-bottom: 1px solid #e7dfcf;
}
.modal-panel h2,
.modal-panel h3 {
margin: 0;
letter-spacing: 0;
}
.modal-panel h2 {
font-size: 24px;
}
.modal-panel h3 {
font-size: 16px;
}
.close-button {
background: #2c302a;
color: #fffef8;
}
.modal-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 16px;
}
.modal-section {
display: grid;
gap: 12px;
align-content: start;
padding: 16px;
border: 1px solid #e0d8c8;
border-radius: 8px;
background: #fbf8ef;
}
.modal-section label {
display: grid;
gap: 5px;
color: #657061;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.session-facts,
.about-list {
display: grid;
gap: 8px;
margin: 0;
}
.session-facts div,
.about-list div {
display: grid;
grid-template-columns: 120px minmax(0, 1fr);
gap: 12px;
}
.session-facts dt,
.about-list dt {
color: #657061;
font-size: 12px;
font-weight: 800;
}
.session-facts dd,
.about-list dd {
margin: 0;
color: #252821;
line-height: 1.45;
}
.resource-toggles {
display: grid;
gap: 8px;
}
.resource-toggles label {
display: flex;
gap: 9px;
align-items: center;
color: #252821;
font-size: 14px;
text-transform: none;
}
.resource-toggles input {
width: auto;
}
.resource-disabled {
margin: 0;
color: #657061;
font-size: 14px;
line-height: 1.5;
}
.about-modal {
width: min(760px, 100%);
}
.timeline-modal {
width: min(1080px, 100%);
}
.settings-modal {
width: min(780px, 100%);
}
.settings-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.settings-grid .modal-section:last-child {
grid-column: 1 / -1;
}
.settings-grid input[type='range'] {
padding: 0;
}
.checkbox-row {
display: flex !important;
gap: 9px !important;
align-items: center;
color: #252821 !important;
font-size: 14px !important;
text-transform: none !important;
}
.checkbox-row input {
width: auto;
}
.about-modal p {
margin: 0;
color: #3f443d;
line-height: 1.6;
}
.about-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.about-links a {
border-radius: 6px;
padding: 9px 11px;
background: #2f6f5e;
color: white;
font-weight: 800;
text-decoration: none;
}
.timeline-canvas {
overflow-x: auto;
padding: 30px 4px 12px;
}
.timeline-canvas ol {
position: relative;
display: flex;
gap: 18px;
min-width: max-content;
margin: 0;
padding: 0;
list-style: none;
}
.timeline-canvas ol::before {
position: absolute;
top: 18px;
right: 0;
left: 0;
height: 3px;
border-radius: 999px;
background: #d6a84f;
content: '';
}
.timeline-canvas li {
position: relative;
width: 190px;
padding-top: 30px;
}
.timeline-dot {
position: absolute;
top: 10px;
left: 16px;
z-index: 1;
width: 18px;
height: 18px;
border: 3px solid #fffef8;
border-radius: 50%;
background: #2f6f5e;
box-shadow: 0 0 0 2px #d6a84f;
}
.timeline-canvas button {
display: grid;
gap: 5px;
width: 100%;
min-height: 120px;
align-content: start;
border-color: #ded6c7;
background: #fbf8ef;
color: #202124;
text-align: left;
}
.timeline-canvas button:disabled {
cursor: default;
opacity: 1;
}
.timeline-canvas time,
.timeline-canvas span,
.timeline-canvas small {
color: #657061;
font-size: 12px;
}
.timeline-canvas small {
overflow: hidden;
text-overflow: ellipsis;
}
.empty-timeline {
display: grid;
gap: 12px;
justify-items: center;
padding: 30px;
color: #657061;
}
@keyframes page-turn-forward {
0% {
opacity: 0.8;
transform: translateX(18px) rotateY(-4deg);
}
55% {
opacity: 1;
transform: translateX(-6px) rotateY(2deg);
}
100% {
transform: translateX(0) rotateY(0);
}
}
@keyframes page-turn-back {
0% {
opacity: 0.8;
transform: translateX(-18px) rotateY(4deg);
}
55% {
opacity: 1;
transform: translateX(6px) rotateY(-2deg);
}
100% {
transform: translateX(0) rotateY(0);
}
}
@keyframes tab-window-forward {
0% {
transform: translateX(18px);
opacity: 0.65;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes tab-window-back {
0% {
transform: translateX(-18px);
opacity: 0.65;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes helper-writing {
0%,
100% {
transform: translate(0, 0) rotate(-18deg);
}
50% {
transform: translate(5px, 3px) rotate(-10deg);
}
}
@media (prefers-reduced-motion: reduce) {
.page-system.turn-forward .bible-page,
.page-system.turn-back .bible-page,
.book-tabs.turn-forward,
.book-tabs.turn-back,
.helper-pencil {
animation: none;
}
}
.status-panel.error {
border-color: #b42318;
color: #b42318;
}
.compare-pages {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
min-height: 0;
}
.compare-pages .bible-page + .bible-page {
border-left: 1px solid #e4dece;
}
.compare-placeholder {
align-content: start;
gap: 24px;
background: #fbf8ef;
}
.compare-placeholder h2 {
margin: 0 0 10px;
color: #252821;
font-size: 22px;
letter-spacing: 0;
}
.compare-placeholder p {
max-width: 36rem;
margin: 0;
color: #657061;
font-size: 15px;
line-height: 1.55;
}
@media (max-width: 1200px) {
.study-desk,
.study-desk.notes,
.study-desk.study,
.study-desk.compare {
grid-template-columns: minmax(0, 1fr);
}
.page-system.study,
.page-system.notes,
.compare-pages {
grid-template-columns: minmax(0, 1fr);
}
.study-margin,
.compare-pages .bible-page + .bible-page {
grid-column: 1;
grid-row: auto;
border-top: 1px solid #e4dece;
border-left: 0;
}
.reader {
height: auto;
min-height: 100vh;
}
.bible-page {
min-height: 760px;
}
}
@media (max-width: 760px) {
.app-shell {
grid-template-columns: 1fr;
}
.tool-rail {
flex-direction: row;
justify-content: flex-start;
}
.top-bar {
grid-template-columns: 1fr;
}
.page-controls {
grid-template-columns: 1fr 1fr;
}
.page-columns {
column-count: 1;
}
}