diff options
Diffstat (limited to 'popup/popup.css')
-rw-r--r-- | popup/popup.css | 390 |
1 files changed, 343 insertions, 47 deletions
diff --git a/popup/popup.css b/popup/popup.css index 174470e..80d3ec1 100644 --- a/popup/popup.css +++ b/popup/popup.css @@ -1,53 +1,349 @@ @import url("../shared/variables.css");
+@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
+
+:root {
+ --radius-sm: 6px;
+ --radius-md: 8px;
+ --radius-lg: 12px;
+ --transition: all 0.2s ease;
+ --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
+ --accent-color: #f98764; /* Subtle Zen-themed orange */
+ --hover-color: #fa9475; /* Lighter hover state */
+ --success-color: #40c057;
+ --warning-color: #fab005;
+ --danger-color: #fa5252;
+ --bg-color: #1e1e2e;
+ --secondary-bg: #2a2a3c;
+ --border-color: #4c4c63;
+ --text-primary: #e2e8f0;
+ --text-secondary: #a0a0b8;
+}
body {
- width: 350px;
+ width: 360px;
+ margin: 0;
+ padding: 0;
+ font-family: 'Inter', Arial, sans-serif;
+ color: var(--text-primary);
+ background-color: var(--bg-color);
+ font-size: 14px;
+ line-height: 1.5;
+}
+
+.container {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+}
+
+/* Header Styles */
+.app-header {
+ background: linear-gradient(135deg, #2c3e50, #1a2530);
+ color: white;
+ padding: 16px 20px;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+ box-shadow: var(--shadow);
+}
+
+.logo-container {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.logo-img {
+ width: 32px;
+ height: 32px;
+ object-fit: contain;
+}
+
+.app-title {
+ margin: 0;
+ font-size: 20px;
+ font-weight: 600;
+ letter-spacing: -0.5px;
+}
+
+.author {
+ font-size: 12px;
+ margin-top: 4px;
+ opacity: 0.9;
+}
+
+.author a {
+ color: white;
+ text-decoration: none;
+ font-weight: 500;
+}
+
+.author a:hover {
+ text-decoration: underline;
+}
+
+/* Main Content Styles */
+.app-content {
+ padding: 20px;
+ display: flex;
+ flex-direction: column;
+ gap: 20px;
+}
+
+/* Toggle Switch */
+.toggle-container {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ margin-bottom: 8px;
+}
+
+/* Current site toggle styling */
+.current-site-container {
+ background-color: var(--secondary-bg);
+ padding: 12px;
+ border-radius: var(--radius-md);
+ margin-top: -12px;
+ position: relative;
+ animation: fadeIn 0.3s ease-in-out;
+}
+
+@keyframes fadeIn {
+ from { opacity: 0; transform: translateY(-5px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+.toggle-switch {
+ position: relative;
+ display: inline-block;
+ width: 46px;
+ height: 24px;
+}
+
+.toggle-switch input {
+ opacity: 0;
+ width: 0;
+ height: 0;
+}
+
+.slider {
+ position: absolute;
+ cursor: pointer;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background-color: #4c4c63;
+ transition: var(--transition);
+ border-radius: 34px;
+}
+
+.slider:before {
+ position: absolute;
+ content: "";
+ height: 18px;
+ width: 18px;
+ left: 3px;
+ bottom: 3px;
+ background-color: white;
+ transition: var(--transition);
+ border-radius: 50%;
+}
+
+input:checked + .slider {
+ background-color: var(--accent-color);
+}
+
+input:focus + .slider {
+ box-shadow: 0 0 1px var(--accent-color);
+}
+
+input:checked + .slider:before {
+ transform: translateX(22px);
+}
+
+.toggle-label {
+ font-weight: 500;
+}
+
+/* Websites List */
+.section-title {
+ font-size: 16px;
+ font-weight: 600;
+ margin: 0 0 12px 0;
+ color: var(--text-primary);
+}
+
+.websites-container {
+ background-color: var(--secondary-bg);
+ border-radius: var(--radius-md);
+ padding: 16px;
+}
+
+.websites-list {
+ list-style: none;
padding: 0;
margin: 0;
- background-color: var(--transparent-background-darker);
- font-family: Arial, Helvetica, sans-serif;
- color: var(--color-text);
-
- .container {
- display: flex;
- flex-direction: column;
- gap: 12px;
-
- #extension-header {
- background-color: var(--color-bg);
- padding: 16px;
-
- .headline {
- margin: 0;
- }
- }
-
- #extension-body {
- padding: 16px;
-
- display: flex;
- flex-direction: column;
- gap: 16px;
-
- #extension-settings {
- .setting {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- }
-
- #extension-description {
- a {
- color: var(--color-primary);
- font-weight: bold;
- text-decoration: none;
-
- &:hover {
- text-decoration: underline;
- }
- }
- }
- }
- }
+ max-height: 150px;
+ overflow-y: auto;
+ border: 1px solid var(--border-color);
+ border-radius: var(--radius-sm);
+ background-color: var(--bg-color);
+
+ /* Firefox scrollbar styling */
+ scrollbar-width: thin;
+ scrollbar-color: var(--accent-color) transparent;
+}
+
+.websites-list li {
+ padding: 10px 12px;
+ border-bottom: 1px solid var(--border-color);
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ color: var(--text-primary);
+}
+
+.websites-list li:last-child {
+ border-bottom: none;
+}
+
+.websites-list li:before {
+ content: "•";
+ color: var(--accent-color);
+ font-weight: bold;
+ opacity: 0.9;
+}
+
+/* Action Buttons */
+.actions {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.action-button {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ padding: 10px 16px;
+ border: none;
+ border-radius: var(--radius-md);
+ font-weight: 500;
+ cursor: pointer;
+ transition: var(--transition);
+ outline: none;
+}
+
+.action-button i {
+ font-size: 14px;
+}
+
+.action-button.primary {
+ background-color: var(--accent-color);
+ color: white;
+ border: none;
+}
+
+.action-button.primary:hover {
+ background-color: var(--hover-color);
+ box-shadow: 0 0 8px rgba(243, 156, 18, 0.5);
+}
+
+.action-button.secondary {
+ background-color: transparent;
+ border: 1px solid var(--border-color);
+ color: var(--text-secondary);
+}
+
+.action-button.secondary:hover {
+ background-color: rgba(255, 255, 255, 0.1);
}
+
+/* Footer */
+.app-footer {
+ margin-top: auto;
+ padding: 14px 20px;
+ background-color: var(--secondary-bg);
+ border-top: 1px solid var(--border-color);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.footer-link {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ color: var(--text-secondary);
+ text-decoration: none;
+ font-size: 12px;
+ font-weight: 500;
+ transition: var(--transition);
+}
+
+.footer-link:hover {
+ color: var(--accent-color);
+ opacity: 0.9;
+}
+
+.footer-divider {
+ height: 16px;
+ width: 1px;
+ background-color: var(--border-color);
+}
+
+/* Current site highlighting */
+.current-site {
+ background-color: rgba(229, 152, 102, 0.1); /* Subtle orange background */
+ border-left: 3px solid var(--accent-color); /* Orange accent bar */
+ padding-left: 9px !important; /* Compensate for the border */
+}
+
+.current-badge {
+ display: inline-block;
+ background-color: var(--accent-color);
+ color: white;
+ font-size: 10px;
+ font-weight: 600;
+ padding: 2px 6px;
+ border-radius: 10px;
+ margin-left: 6px;
+ vertical-align: middle;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+}
+
+/* Ensure checkbox and label spacing */
+.websites-list li label {
+ display: flex;
+ align-items: center;
+ width: 100%;
+}
+
+.websites-list li label input[type="checkbox"] {
+ margin-right: 8px;
+ flex-shrink: 0;
+}
+
+/* Add a slight animation to the current site */
+.current-site {
+ animation: fadeIn 0.3s ease-in-out;
+}
+
+@keyframes fadeIn {
+ from { opacity: 0.7; }
+ to { opacity: 1; }
+}
+
+/* Make sure the text doesn't overflow */
+.websites-list li label {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+/* Push the badge to the right */
+.current-badge {
+ margin-left: auto;
+ margin-right: 4px;
+}
\ No newline at end of file |