Skip to content

Commit 466c0a4

Browse files
committed
Added css variables
1 parent f84f149 commit 466c0a4

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ function App() {
7878
| **secondsWrapper** | Seconds-specific container | Seconds input + " symbol |
7979
| **signInput** | Cardinal direction container | N/S/E/W dropdown selector |
8080
81+
### CSS variables
82+
83+
| Variable Name | Default Value | Description |
84+
| -------------------------- | ------------- | ------------------------------------- |
85+
| **border-color** | #ccc | Border color for input fields |
86+
| **focus-background-color** | #eef6ff | Border color for focused input fields |
87+
| **symbol-color** | #6c757d | Color for measurement symbols |
88+
8189
## License
8290
8391
MIT

lib/DMSInput.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.DMSInput {
22
--border-color: #ccc;
3-
--focus-border-color: #007bff;
3+
--focus-background-color: #eef6ff;
44
--symbol-color: #666;
55
display: inline-flex;
66
align-items: center;
@@ -45,7 +45,7 @@
4545

4646
.DMSInput select:focus,
4747
.DMSInput input:focus {
48-
background-color: var(--focus-border-color);
48+
background-color: var(--focus-background-color);
4949
}
5050

5151
.degrees-wrapper input {

tsconfig.app.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"skipLibCheck": true,
99
"types": ["vitest/globals", "./lib/global.d.ts"],
1010

11-
/* Bundler mode */
1211
"moduleResolution": "bundler",
1312
"allowImportingTsExtensions": true,
1413
"isolatedModules": true,
@@ -18,7 +17,6 @@
1817
"emitDeclarationOnly": true,
1918
"outDir": "dist",
2019

21-
/* Linting */
2220
"strict": true,
2321
"noUnusedLocals": true,
2422
"noUnusedParameters": true,

0 commit comments

Comments
 (0)