Files
firka-extension/settings/index.css
2026-01-12 20:34:48 +01:00

1310 lines
23 KiB
CSS

* {
box-sizing:border-box;
margin:0;
padding:0;
}
body {
width:400px;
margin:0;
padding:0;
color:var(--text-primary);
background-color:var(--background) !important;
font-family:"Montserrat",serif;
font-size:14px;
}
* {
scrollbar-width:none;
-ms-overflow-style:none;
}
*::-webkit-scrollbar {
display:none;
}
.popup-container {
padding:16px;
}
.popup-header {
text-align:center;
margin-bottom:12px;
}
.logo-text {
color:var(--text-primary);
font-size:20px;
font-weight:600;
margin:8px 0;
display:flex;
align-items:center;
justify-content:center;
}
.logo {
width:20px;
border-radius:6px;
margin-right:8px;
}
.tab-navigation {
display: flex;
gap: 8px;
margin-bottom: 16px;
padding: 4px;
background: var(--card-card);
border-radius: 12px;
box-shadow: 0px 1px var(--shadow-blur) 0px var(--accent-shadow);
}
.tab-button {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 12px;
border: none;
border-radius: 8px;
background: transparent;
color: var(--text-secondary);
font-family: "Montserrat", serif;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.tab-button:hover {
background: var(--accent-15);
color: var(--text-primary);
}
.tab-button.active {
background: var(--accent-accent);
color: #000;
}
.tab-button .material-icons-round {
font-size: 16px;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
animation: fadeIn 0.2s ease;
}
.settings-card,.about-card,.support-card {
background:var(--card-card);
border-radius:16px;
padding:16px;
margin-bottom:16px;
box-shadow:0px 1px var(--shadow-blur) 0px var(--accent-shadow);
}
h2 {
font-size:16px;
font-weight:600;
color:var(--text-primary);
margin-bottom:12px;
background-color:var(--card-card);
}
.settings-group {
display:flex;
flex-direction:column;
gap:16px;
}
.setting-section {
display:flex;
flex-direction:column;
gap:12px;
}
.setting-header {
display:flex;
align-items:center;
gap:8px;
font-weight:600;
font-size:16px;
color:var(--text-primary);
}
.setting-header-left {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
}
.setting-header.theme-header {
justify-content: space-between;
}
.theme-manage-dropdown {
position: relative;
}
.theme-manage-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: 8px;
background: var(--accent-15);
color: var(--accent-accent);
cursor: pointer;
transition: all 0.2s ease;
}
.theme-manage-btn:hover {
background: var(--accent-accent);
color: var(--button-secondaryFill);
}
.theme-manage-menu {
position: absolute;
top: calc(100% + 4px);
right: 0;
background: var(--card-card);
border: 1px solid var(--border-border);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
min-width: 200px;
opacity: 0;
visibility: hidden;
transform: translateY(-8px);
transition: all 0.2s ease;
z-index: 100;
overflow: hidden;
}
.theme-manage-menu.active {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.theme-manage-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 12px 16px;
border: none;
background: transparent;
color: var(--text-primary);
font-family: "Montserrat", serif;
font-size: 14px;
font-weight: 500;
text-align: left;
cursor: pointer;
transition: background 0.2s ease;
}
.theme-manage-item:hover {
background: var(--accent-15);
}
.theme-manage-item .material-icons-round {
font-size: 20px;
color: var(--accent-accent);
}
.theme-grid,.language-grid {
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
}
.theme-option,.language-option {
background:none;
border:none;
padding:0;
cursor:pointer;
display:flex;
flex-direction:column;
align-items:center;
gap:8px;
transition:transform 0.2s ease;
position: relative;
}
.theme-option:hover,.language-option:hover {
transform:translateY(-2px);
}
.theme-option.disabled {
opacity:0.5;
cursor:not-allowed;
position:relative;
}
.theme-option.disabled::after {
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background-color:rgba(0,0,0,0.1);
border-radius:8px;
}
.language-option {
background:var(--button-secondaryFill);
border:1px solid var(--border-border);
border-radius:8px;
padding:12px;
transition:all 0.2s ease;
}
.language-option:hover {
border-color:var(--accent-accent);
}
.language-option.active {
background:var(--accent-accent);
border-color:var(--accent-accent);
color:white;
}
.language-name {
color:var(--text-primary);
font-size:12px;
font-weight:500;
font-family: "Montserrat", serif;
}
.custom-theme-option {
position: relative;
}
.custom-theme-option .theme-preview {
position: relative;
overflow: visible;
}
.custom-theme-settings-btn {
position: absolute !important;
top: 8px !important;
right: 8px !important;
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: none;
border-radius: 6px;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
color: white;
cursor: pointer;
transition: all 0.2s ease;
z-index: 10;
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.custom-theme-option:hover .custom-theme-settings-btn {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
.custom-theme-settings-btn:hover {
background: var(--accent-accent);
transform: scale(1.1);
}
.custom-theme-settings-btn .material-icons-round {
font-size: 18px;
}.custom-theme-dropdown {
position: fixed;
background: var(--card-card);
border: 1px solid var(--border-border);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
min-width: 160px;
opacity: 0;
visibility: hidden;
transform: translateY(-8px);
transition: all 0.2s ease;
overflow: hidden;
z-index: 10000;
pointer-events: none;
}
.custom-theme-dropdown.active {
opacity: 1;
visibility: visible;
transform: translateY(0);
pointer-events: auto;
}
.custom-theme-dropdown-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 10px 12px;
border: none;
background: transparent;
color: var(--text-primary);
font-family: "Montserrat", serif;
font-size: 13px;
font-weight: 500;
text-align: left;
cursor: pointer;
transition: background 0.2s ease;
}
.custom-theme-dropdown-item:hover {
background: var(--accent-15);
}
.custom-theme-dropdown-item.delete {
color: #ff5050;
}
.custom-theme-dropdown-item.delete:hover {
background: rgba(255, 80, 80, 0.1);
}
.custom-theme-dropdown-item .material-icons-round {
font-size: 18px;
color: var(--accent-accent);
}
.custom-theme-dropdown-item.delete .material-icons-round {
color: #ff5050;
}
.theme-option.active .theme-preview {
outline:2px solid var(--accent-accent);
outline-offset:2px;
}
.language-option.active .language-preview {
outline:2px solid var(--accent-accent);
outline-offset:2px;
}
.theme-preview {
width:100%;
height:100px;
border-radius:8px;
overflow:hidden;
position:relative;
display: flex;
flex-direction: column;
}
.theme-name {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 8px;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
color: white;
font-size: 11px;
font-weight: 600;
text-align: center;
z-index: 5;
border-radius: 8px;
}
.theme-preview.light-green {
background:#FAFFF0;
}
.theme-preview.light-green .preview-header {
background:#F3FBDE;
}
.theme-preview.light-green .preview-card {
background:#FEFFFD;
}
.theme-preview.dark-green {
background:#0D1202;
}
.theme-preview.dark-green .preview-header {
background:#141905;
}
.theme-preview.dark-green .preview-card {
background:#20290b;
}
.preview-header {
height:30%;
width:100%;
flex-shrink: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.preview-content {
padding:8px;
flex: 1;
display: flex;
align-items: center;
}
.preview-card {
width: 100%;
height:30px;
border-radius:4px;
}
.about-content,.support-content {
color:var(--text-secondary);
font-size:14px;
line-height:1.5;
}
.about-content p,.support-content p {
margin-bottom:12px;
}
.about-links {
display: flex;
flex-direction: row;
gap: 8px;
margin-top: 8px;
}
.about-link {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 8px;
background: var(--accent-15);
border-radius: 10px;
color: var(--text-primary);
text-decoration: none;
font-weight: 500;
font-size: 12px;
transition: all 0.2s ease;
box-shadow: 0px 1px var(--shadow-blur, 2px) 0px var(--accent-shadow);
}
.about-link:hover {
background: var(--accent-accent);
color: var(--button-secondaryFill);
transform: translateY(-1px);
}
.about-link .material-icons-round {
color: var(--text-primary);
font-size: 20px;
}
.about-link:hover .material-icons-round {
color: var(--button-secondaryFill);
font-size: 20px;
}
.support-buttons {
display:flex;
gap:8px;
margin-top:12px;
box-shadow: 0px 1px var(--shadow-blur, 2px) 0px var(--accent-shadow);
}
.support-button {
flex:1;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
padding:8px;
background:var(--accent-15);
color:var(--text-primary);
text-decoration:none;
border-radius:8px;
font-weight:500;
transition:all 0.2s;
}
.support-button:hover {
background:var(--accent-accent);
color:var(--button-secondaryFill);
}
.popup-footer {
text-align:center;
margin-top:16px;
}
.version-info {
color:var(--text-secondary);
font-size:12px;
text-align:center;
}
.material-icons-round {
font-size:18px;
vertical-align:middle;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
display: none;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 16px;
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.modal-overlay.active {
display: flex;
}
.modal-content {
background: var(--card-card);
border-radius: 16px;
width: 100%;
max-width: 420px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0px 1px var(--shadow-blur, 2px) 0px var(--accent-shadow), 0 12px 32px rgba(0, 0, 0, 0.2);
animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 16px 0px 16px;
}
.modal-header h3 {
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
margin: 0;
}
.modal-body {
padding: 16px;
}
.modal-footer {
display: flex;
gap: 8px;
padding: 0px 16px 16px 16px;
}
.modal-footer button {
flex: 1;
padding: 10px 16px;
border: none;
border-radius: 8px;
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
font-family: "Montserrat", serif;
}
.btn-primary {
background: var(--accent-accent);
color: #000;
}
.btn-primary:hover {
opacity: 0.9;
}
.btn-secondary {
background: var(--button-secondaryFill);
color: var(--text-primary);
}
.btn-secondary:hover {
background: var(--accent-15);
}
.theme-form .form-group {
margin-bottom: 12px;
}
.theme-form label {
display: block;
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 6px;
}
.theme-form input[type="text"] {
width: 100%;
padding: 10px 12px;
box-shadow: 0px 1px var(--shadow-blur) 0px var(--accent-shadow);
border-radius: 8px;
background: var(--button-secondaryFill);
color: var(--text-primary);
font-size: 13px;
font-family: "Montserrat", serif;
outline: none;
transition: border-color 0.2s ease;
border: none !important
}
.theme-form input[type="text"]:focus {
border-color: var(--accent-accent);
}
.mode-selector {
display: flex;
gap: 8px;
}
.mode-option {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px;
border-radius: 8px;
background: var(--accent-15);
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s ease;
font-family: "Montserrat", serif;
font-size: 12px;
font-weight: 500;
border:none !important
}
.mode-option:hover {
background: var(--accent-15);
}
.mode-option.active {
background: var(--accent-accent);
color:var(--button-secondaryFill)
}
.color-section {
margin-top: 16px;
}
.color-section h4 {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 10px 0;
}
.color-group {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
gap: 12px;
}
.color-group label {
font-size: 12px;
color: var(--text-secondary);
margin: 0;
white-space: nowrap;
flex-shrink: 0;
font-weight: 500;
}
.color-input-wrapper {
display: flex;
align-items: center;
gap: 8px;
}
.color-input-wrapper input[type="color"] {
width: 28px;
height: 28px;
border: none;
border-radius: 6px;
cursor: pointer;
padding: 0;
background: transparent;
flex-shrink: 0;
border: 1px solid var(--text-teritary);
}
.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
padding: 0;
}
.color-input-wrapper input[type="color"]::-webkit-color-swatch {
border: none;
border-radius: 6px;
}
.color-hex {
width: 72px;
padding: 6px 8px;
border-radius: 6px;
background: var(--button-secondaryFill);
color: var(--text-primary);
font-size: 11px;
font-family: monospace;
text-transform: uppercase;
flex-shrink: 0;
outline: none;
transition: border-color 0.2s ease;
max-width: 200px;
}
.color-hex:focus {
border-color: var(--accent-accent);
}
.theme-preview-section {
margin-top: 20px;
}
.theme-preview-section h4 {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 12px 0;
}
.live-preview {
width: 100%;
height: 80px;
border-radius: 8px;
overflow: hidden;
position: relative;
}
.live-preview .preview-header {
height: 30%;
width: 100%;
}
.live-preview .preview-content {
padding: 8px;
}
.live-preview .preview-card {
height: 20px;
border-radius: 4px;
margin-bottom: 4px;
}
.live-preview .preview-text {
font-size: 10px;
}
.share-code-wrapper {
position: relative;
margin-top: 12px;
}
.share-code-wrapper textarea,
#importCode {
width: 100%;
min-height: 80px;
padding: 12px;
border: 1px solid var(--text-teritary);
border-radius: 8px;
background: var(--button-secondaryFill);
color: var(--text-primary);
font-family: monospace;
font-size: 11px;
resize: none;
outline: none;
transition: border-color 0.2s ease;
}
.share-code-wrapper textarea:focus,
#importCode:focus {
border-color: var(--accent-accent);
}
.copy-btn {
position: absolute;
top: 8px;
right: 8px;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: 6px;
background: var(--accent-15);
color: var(--accent-accent);
cursor: pointer;
transition: all 0.2s ease;
}
.copy-btn:hover {
background: var(--accent-accent);
color: var(--button-secondaryFill);
}
.copy-btn.copied {
background: var(--grades-4);
color: white;
}
.error-message {
color: var(--error-accent);
font-size: 12px;
margin-top: 8px;
min-height: 16px;
}
.import-modal .modal-body p,
.share-modal .modal-body p {
color: var(--text-secondary);
font-size: 12px;
margin-bottom: 8px;
}
#importCode {
margin-top: 8px;
}
.page-settings-info {
margin-bottom: 16px;
}
.current-page-indicator {
display: flex;
align-items: center;
gap: 8px;
padding: 12px;
background: var(--button-secondaryFill);
border-radius: 10px;
font-size: 13px;
color: var(--text-secondary);
}
.current-page-indicator .material-icons-round {
color: var(--accent-accent);
}
.page-badge {
margin-left: auto;
padding: 4px 10px;
background: var(--accent-15);
color: var(--accent-accent);
border-radius: 6px;
font-size: 11px;
font-weight: 600;
text-transform: capitalize;
}
.page-specific-settings {
display: flex;
flex-direction: column;
gap: 12px;
}
.no-settings-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px 16px;
text-align: center;
color: var(--text-secondary);
}
.no-settings-placeholder .material-icons-round {
font-size: 48px;
margin-bottom: 12px;
opacity: 0.5;
}
.no-settings-placeholder p {
font-size: 13px;
margin: 0;
}
.setting-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px;
background: var(--button-secondaryFill);
border-radius: 10px;
gap: 12px;
}
.setting-item-info {
flex: 1;
}
.setting-item-label {
font-size: 13px;
font-weight: 500;
color: var(--text-primary);
margin-bottom: 4px;
}
.setting-item-description {
font-size: 11px;
color: var(--text-secondary);
}
.toggle-switch {
position: relative;
width: 44px;
height: 24px;
flex-shrink: 0;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--text-teritary);
border-radius: 24px;
transition: 0.3s;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background: white;
border-radius: 50%;
transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
background: var(--accent-accent);
}
.toggle-switch input:checked + .toggle-slider:before {
transform: translateX(20px);
}
.setting-select {
padding: 8px 12px;
border: 1px solid var(--border-border, var(--text-teritary));
border-radius: 8px;
background: var(--button-secondaryFill);
color: var(--text-primary);
font-family: "Montserrat", serif;
font-size: 12px;
cursor: pointer;
outline: none;
min-width: 100px;
}
.setting-select:focus {
border-color: var(--accent-accent);
}
.error-reporting-card {
background: var(--card-card);
border-radius: 16px;
padding: 16px;
margin-bottom: 16px;
box-shadow: 0px 1px var(--shadow-blur) 0px var(--accent-shadow);
}
.error-reporting-card h2 {
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 12px;
}
.error-reporting-content {
display: flex;
flex-direction: column;
gap: 12px;
}
.report-issue-button-wrapper {
margin-top: 4px;
}
.report-issue-button {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: var(--accent-15);
border-radius: 10px;
text-decoration: none;
transition: all 0.2s ease;
cursor: pointer;
color: var(--text-primary);
box-shadow: 0px 1px var(--shadow-blur, 2px) 0px var(--accent-shadow);
}
.report-issue-button:hover {
background: var(--accent-accent);
}
.report-issue-button:hover .material-icons-round {
color: var(--button-secondaryFill);
}
.report-issue-button:hover .report-issue-text {
color: var(--button-secondaryFill);
}
.report-issue-button .material-icons-round {
color: var(--accent-accent);
font-size: 24px;
transition: color 0.2s ease;
}
.report-issue-text {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
color: var(--text-primary);
transition: color 0.2s ease;
}
.report-issue-title {
font-size: 13px;
font-weight: 600;
}
.report-issue-desc {
font-size: 11px;
color: var(--text-secondary);
transition: color 0.2s ease;
}
.report-issue-button:hover .report-issue-desc {
color: var(--button-secondaryFill);
opacity: 0.8;
}
.notification {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--accent-accent);
color: #000;
padding: 12px 20px;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
font-family: "Montserrat", serif;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
opacity: 0;
transform: translateY(20px);
transition: all 0.3s ease;
z-index: 10001;
}
.notification.show {
opacity: 1;
transform: translateY(0);
}
.update-modal .modal-content {
max-width: 500px;
}
.update-version-info {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 20px;
padding: 16px;
background: var(--button-secondaryFill);
border-radius: 12px;
}
.version-badge {
display: flex;
flex-direction: column;
gap: 4px;
flex: 1;
}
.version-badge.current {
text-align: left;
}
.version-badge.latest {
text-align: right;
}
.version-label {
font-size: 11px;
color: var(--text-secondary);
font-weight: 500;
}
.version-number {
font-size: 16px;
font-weight: 700;
color: var(--text-primary);
font-family: monospace;
}
.version-badge.latest .version-number {
color: var(--accent-accent);
}
.version-arrow {
color: var(--accent-accent);
font-size: 24px;
flex-shrink: 0;
}
.update-changelog-section {
margin-top: 16px;
}
.update-changelog-section h4 {
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 12px 0;
}
.update-changelog {
max-height: 300px;
overflow-y: auto;
padding: 12px;
background: var(--button-secondaryFill);
border-radius: 8px;
font-size: 13px;
line-height: 1.6;
color: var(--text-secondary);
}
.update-changelog p {
margin: 0 0 8px 0;
color: var(--text-primary);
}
.update-changelog p:last-child {
margin-bottom: 0;
}
.update-changelog h1,
.update-changelog h2,
.update-changelog h3 {
color: var(--text-primary);
margin: 12px 0 8px 0;
font-weight: 600;
}
.update-changelog h1 {
font-size: 18px;
}
.update-changelog h2 {
font-size: 16px;
}
.update-changelog h3 {
font-size: 14px;
}
.update-changelog ul,
.update-changelog ol {
margin: 8px 0;
padding-left: 24px;
color: var(--text-primary);
}
.update-changelog li {
margin: 4px 0;
}
.update-changelog code {
background: var(--accent-15);
color: var(--accent-accent);
padding: 2px 6px;
border-radius: 4px;
font-family: monospace;
font-size: 12px;
}
.update-changelog pre {
background: var(--background);
color: var(--text-primary);
padding: 12px;
border-radius: 6px;
overflow-x: auto;
margin: 8px 0;
}
.update-changelog pre code {
background: transparent;
padding: 0;
}
.update-changelog a {
color: var(--accent-accent);
text-decoration: none;
font-weight: 500;
}
.update-changelog a:hover {
text-decoration: underline;
}
.update-changelog blockquote {
border-left: 3px solid var(--accent-accent);
padding-left: 12px;
margin: 8px 0;
color: var(--text-secondary);
font-style: italic;
}
.update-changelog strong {
color: var(--text-primary);
font-weight: 600;
}
.update-changelog em {
font-style: italic;
color: var(--text-secondary);
}
.update-button {
display: flex;
align-items: center;
gap: 6px;
text-decoration: none;
justify-content: center;
border-radius: 8px;
padding: 12px 16px;
}
.update-button .material-icons-round {
font-size: 18px;
}