Skip to content

Commit 091da5c

Browse files
author
William Troup
committed
All hover transition effects now work for hovering, and not hovering, which results in a smoother display.
1 parent c794c37 commit 091da5c

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

dist/select.js.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ div.select-js div.drop-down {
8282
div.select-js div.drop-down div.item {
8383
padding: var(--select-js-spacing);
8484
border-bottom: var(--select-js-border-size) var(--select-js-color-black) dotted;
85+
transition: var(--select-js-transition);
8586
}
8687
div.select-js div.drop-down div.item:last-child {
8788
border-bottom: none;
8889
}
8990
div.select-js div.drop-down div.item:hover {
9091
cursor: pointer;
9192
background-color: var(--select-js-color-light-gray);
92-
transition: var(--select-js-transition);
9393
}
9494
div.select-js div.drop-down div.selected {
9595
color: var(--select-js-color-gray);
@@ -113,16 +113,15 @@ div.select-js div.control div.button {
113113
right: 14px;
114114
top: 14px;
115115
transform: rotate(45deg);
116+
transition: var(--select-js-transition);
116117
}
117118
div.select-js div.control div.button:hover {
118119
cursor: pointer;
119120
opacity: 0.7;
120-
transition: var(--select-js-transition);
121121
}
122122
div.select-js div.control div.button:active {
123123
cursor: pointer;
124124
opacity: 0.5;
125-
transition: var(--select-js-transition);
126125
}
127126
div.select-js div.control div.button-open {
128127
transform: rotate(-135deg);
@@ -146,11 +145,11 @@ div.select-js div.control div.selected-item div.remove {
146145
margin-left: var(--select-js-spacing);
147146
display: inline-block;
148147
font-weight: bold;
148+
transition: var(--select-js-transition);
149149
}
150150
div.select-js div.control div.selected-item div.remove:hover {
151151
cursor: pointer;
152152
opacity: 0.7;
153-
transition: var(--select-js-transition);
154153
}
155154
div.select-js div.control div.no-items-selected {
156155
background-color: var(--select-js-color-light-gray);

dist/select.js.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/select.js.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/CHANGE_LOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#### **CSS:**
1010
- Added a new ":root" variable called "--select-js-default-font".
11+
- All hover transition effects now work for hovering, and not hovering, which results in a smoother display.
1112

1213
#### **Documentation:**
1314
- Added install instructions into the main README files.

src/select.js.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ div.select-js {
9999
div.item {
100100
padding: var(--select-js-spacing);
101101
border-bottom: var(--select-js-border-size) var(--select-js-color-black) dotted;
102+
transition: var( --select-js-transition );
102103

103104
&:last-child {
104105
border-bottom: none;
@@ -107,7 +108,6 @@ div.select-js {
107108
&:hover {
108109
cursor: pointer;
109110
background-color: var(--select-js-color-light-gray);
110-
transition: var( --select-js-transition );
111111
}
112112
}
113113

@@ -138,17 +138,16 @@ div.select-js {
138138
right: 14px;
139139
top: 14px;
140140
transform: rotate(45deg);
141+
transition: var(--select-js-transition);
141142

142143
&:hover {
143144
cursor: pointer;
144145
opacity: 0.7;
145-
transition: var(--select-js-transition);
146146
}
147147

148148
&:active {
149149
cursor: pointer;
150150
opacity: 0.5;
151-
transition: var(--select-js-transition);
152151
}
153152
}
154153

@@ -177,11 +176,11 @@ div.select-js {
177176
margin-left: var(--select-js-spacing);
178177
display: inline-block;
179178
font-weight: bold;
179+
transition: var(--select-js-transition);
180180

181181
&:hover {
182182
cursor: pointer;
183183
opacity: 0.7;
184-
transition: var(--select-js-transition);
185184
}
186185
}
187186
}

0 commit comments

Comments
 (0)