Skip to content

Commit 9fbe86c

Browse files
committed
added css on select box on indic page
1 parent 4c16243 commit 9fbe86c

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.vscode/dictionaries/project-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Bhadrapada
1414
bincount
1515
BODYPART
1616
Chaitra
17+
checkmark
1718
clsx
1819
cmdk
1920
controlslist

src/assets/styles/indic.css

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
margin-bottom: 0.8rem;
6969
font-size: 1.1rem;
7070
background-image: linear-gradient(135deg, #69ff97 10%, #00e4ff 100%);
71+
background-clip: border-box;
7172
-webkit-background-clip: text;
7273
-webkit-text-fill-color: transparent;
7374
text-transform: uppercase;
@@ -96,7 +97,7 @@
9697
background: linear-gradient(145deg, #1d4ed8, #123085);
9798
color: light-dark (black, white);
9899
cursor: pointer;
99-
appearance: none;
100+
appearance: base-select;
100101
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
101102
box-shadow:
102103
0 4px 6px -1px rgba(0, 0, 0, 0.1),
@@ -106,6 +107,15 @@
106107
background-position: right 1rem center;
107108
background-size: 1.5em;
108109

110+
&::picker-icon {
111+
color: #806df9;
112+
transition: 0.4s rotate;
113+
}
114+
115+
&:open::picker-icon {
116+
rotate: 180deg;
117+
}
118+
109119
&:hover {
110120
border-color: #7dd3fc;
111121
transform: translateY(-1px);
@@ -126,17 +136,33 @@
126136
text-transform: capitalize;
127137
letter-spacing: 2px;
128138
background: light-dark(white, #1e293b);
129-
color: light-dark (black, white);
139+
color: light-dark(black, white);
130140
border-bottom: 1px solid rgba(125, 211, 252, 0.1);
131141

132142
&:checked {
133143
background: rgba(29, 78, 216, 0.5);
134144
font-weight: 600;
135145
}
146+
147+
&:nth-of-type(odd) {
148+
background-color: #b7c4dc80;
149+
}
150+
151+
&::checkmark {
152+
order: 1;
153+
margin-left: auto;
154+
content: '✔';
155+
color: #806df9;
156+
}
136157
}
137158
}
138159
}
139160

161+
::picker(select) {
162+
appearance: base-select;
163+
border: none;
164+
}
165+
140166
.toggle-button {
141167
background: light-dark (var(--navy-blue), var(--text-primary));
142168
border: 1px solid rgba(125, 211, 252, 0.3);
@@ -496,4 +522,4 @@
496522
100% {
497523
--gradient-angle: 360deg;
498524
}
499-
}
525+
}

0 commit comments

Comments
 (0)