Skip to content

Commit b2b7bf8

Browse files
committed
CSS unification
1 parent f944f26 commit b2b7bf8

File tree

5 files changed

+32
-46
lines changed

5 files changed

+32
-46
lines changed
Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
/* Generated css */
1+
/*
2+
common-style.css
3+
Version: 1.0
4+
5+
This file contains shared base styles used across different pages of the extension.
6+
*/
7+
8+
/* ------------------------------------------------------------------------- */
9+
/* Root Variables for Consistent Styling */
10+
/* ------------------------------------------------------------------------- */
211
:root {
3-
--primary-color: #7a5cc8;
4-
}
12+
--primary-color: #7a5cc8;
13+
--danger-color: #a94442;
14+
--border-color: #ccc;
15+
--bg-color: #f9f9f9;
16+
--text-color: #333;
17+
--separator-color: #bbb;
18+
--primary-color-faded: rgba(122, 92, 200, 0.05);
19+
--hover-bg-color: #e6e6e6;
20+
--transition-duration: 0.3s;
21+
--transition-duration-release: 0.4s;
22+
--box-shadow: 0 2px 4px rgba(0,0,0,0.05);
23+
--box-shadow-hover: 0 4px 8px rgba(0,0,0,0.1);
24+
--checkbox-size: 18px;
25+
}

popup-page-styles/popup-base.css

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,6 @@ container centering, section styling, and heading (h2) styles.
88
These rules set up the basic typography, spacing, and color scheme for the interface.
99
*/
1010

11-
/* ------------------------------------------------------------------------- */
12-
/* Root Variables for Consistent Styling */
13-
/* ------------------------------------------------------------------------- */
14-
:root {
15-
--danger-color: #a94442; /* Soft red for danger buttons */
16-
--border-color: #ccc; /* Light gray for borders */
17-
--bg-color: #f9f9f9; /* Very light gray for background */
18-
--text-color: #333; /* Dark gray for primary text */
19-
--separator-color: #bbb; /* Medium gray for separators */
20-
--primary-color-faded: rgba(122, 92, 200, 0.05);
21-
--hover-bg-color: #e6e6e6; /* Light gray on hover */
22-
--transition-duration: 0.3s; /* Standard transition duration */
23-
--transition-duration-release: 0.4s; /* Slower transition duration for release */
24-
--box-shadow: 0 2px 4px rgba(0,0,0,0.05);
25-
--box-shadow-hover: 0 4px 8px rgba(0,0,0,0.1);
26-
--checkbox-size: 18px;
27-
--toast-bg-color: rgba(0, 0, 0, 0.8);
28-
--toast-text-color: #fff;
29-
--toast-padding: 12px 24px;
30-
--toast-border-radius: 4px;
31-
--toast-margin: 8px;
32-
--toast-transition: opacity 0.5s ease, transform 0.5s ease;
33-
}
3411

3512
/* ------------------------------------------------------------------------- */
3613
/* Global Body Styles */

popup-page-styles/popup-components.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,14 @@ Key areas:
240240
}
241241

242242
.toast {
243-
background: var(--toast-bg-color);
244-
color: var(--toast-text-color);
245-
padding: var(--toast-padding);
246-
border-radius: var(--toast-border-radius);
247-
margin-top: var(--toast-margin);
243+
background: #222; /* neutral base; type classes override */
244+
color: #fff; /* readable on dark base */
245+
padding: 12px 24px;
246+
border-radius: 4px;
247+
margin-top: 8px;
248248
opacity: 0;
249249
transform: translateY(20px);
250-
transition: var(--toast-transition);
250+
transition: opacity 0.5s ease, transform 0.5s ease; /* was var(--toast-transition) */
251251
min-width: 200px;
252252
max-width: 300px;
253253
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

popup.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<link rel="stylesheet" href="/common-ui-elements/popup-toggle.css" />
1616
<!-- Theme overrides: Dark mode styles -->
1717
<link rel="stylesheet" href="/common-ui-elements/dark-theme.css" />
18+
<link rel="stylesheet" href="/common-ui-elements/common-style.css" />
1819
</head>
1920

2021
<body>

welcome-page-files/styles.css

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
/* CSS Variables Definition */
2-
:root {
3-
--bg-color: #fff;
4-
--text-color: #333;
5-
6-
/* Typography scale (rem-based) */
7-
--font-base: 1rem; /* body text, paragraphs, list items */
8-
--font-sm: 0.875rem; /* small UI text such as switch label */
9-
--font-lg: 1.125rem; /* subheadings or emphasized text */
10-
--font-xl: 1.375rem; /* section titles (h2) */
11-
--font-2xl: 1.625rem; /* main page title (h1) */
12-
13-
--lh-normal: 1.55;
14-
--lh-tight: 1.3;
15-
}
2+
/* :root block removed as requested */
163

174
/* Base styles for the page */
185
body {

0 commit comments

Comments
 (0)