Skip to content

Commit 1798bff

Browse files
committed
cosmetic fixes & hoverovers
1 parent 26d142f commit 1798bff

9 files changed

Lines changed: 53 additions & 5 deletions

File tree

‎src/skins/vector/css/_common.scss‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ textarea {
211211
background-color: $accent-fg-color;
212212
}
213213

214+
.mx_Dialog button:hover, .mx_Dialog input[type="submit"]:hover {
215+
@mixin mx_DialogButton_hover;
216+
}
217+
214218
.mx_Dialog button:focus, .mx_Dialog input[type="submit"]:focus {
215219
filter: brightness($focus-brightness);
216220
}
@@ -277,6 +281,10 @@ textarea {
277281
@mixin mx_DialogButton_small;
278282
}
279283

284+
.mx_textButton:hover {
285+
@mixin mx_DialogButton_hover;
286+
}
287+
280288
.mx_button_row {
281289
margin-top: 69px;
282290
}

‎src/skins/vector/css/matrix-react-sdk/structures/_UserSettings.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ limitations under the License.
6969
margin: auto;
7070
}
7171

72+
.mx_UserSettings_button:hover {
73+
@mixin mx_DialogButton_hover;
74+
}
75+
7276
.mx_UserSettings_button.danger {
7377
background-color: $warning-color;
7478
}

‎src/skins/vector/css/matrix-react-sdk/structures/login/_Login.scss‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ limitations under the License.
8585
margin-bottom: 24px;
8686
}
8787

88+
.mx_Login_submit:hover {
89+
@mixin mx_DialogButton_hover;
90+
}
91+
8892
.mx_Login_submit:disabled {
8993
opacity: 0.3;
9094
}
@@ -131,8 +135,7 @@ limitations under the License.
131135
}
132136

133137
.mx_Login_forgot {
134-
font-size: 13px;
135-
opacity: 0.8;
138+
font-size: 15px;
136139
}
137140

138141
.mx_Login_forgot:link {

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_MemberDeviceInfo.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ limitations under the License.
3131
flex: 1;
3232
}
3333

34+
.mx_MemberDeviceInfo_textButton:hover {
35+
@mixin mx_DialogButton_hover;
36+
}
37+
3438
.mx_MemberDeviceInfo_deviceId {
3539
font-size: 13px;
3640
}

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_RoomHeader.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ limitations under the License.
4848
order: 2;
4949
}
5050

51+
.mx_RoomHeader_textButton:hover {
52+
@mixin mx_DialogButton_hover;
53+
}
54+
5155
.mx_RoomHeader_textButton_danger {
5256
background-color: $warning-color;
5357
}

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_RoomSettings.scss‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ limitations under the License.
2626
position: relative;
2727
margin-right: 8px;
2828
}
29+
30+
.mx_RoomSettings_leaveButton:hover,
31+
.mx_RoomSettings_unbanButton:hover {
32+
@mixin mx_DialogButton_hover;
33+
}
34+
2935
.mx_RoomSettings_integrationsButton_error {
3036
position: relative;
3137
cursor: not-allowed;

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ $progressbar-color: #000;
154154
display: inline-block;
155155
}
156156

157+
@define-mixin mx_DialogButton_hover {
158+
}
159+
157160
@define-mixin mx_DialogButton_small {
158161
@mixin mx_DialogButton;
159162
font-size: 15px;

‎src/skins/vector/themes/status/css/_StatusLogin.scss‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ limitations under the License.
102102
width: 74px;
103103
height: 74px;
104104
border-radius: 37px;
105-
box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.5);
105+
box-shadow: 0px 5px 16px 0px rgba(0,0,0,0.2);
106106
position: absolute;
107107
top: -36px;
108108
left: 50%;
@@ -134,6 +134,12 @@ limitations under the License.
134134
font-weight: 300;
135135
font-size: 15px;
136136
margin-bottom: 14px;
137+
transition: background-color .2s ease;
138+
}
139+
140+
.mx_Login_field:focus {
141+
border: 1px solid transparent;
142+
background-color: $form-field-bg-hover-color;
137143
}
138144

139145
.mx_Login_field::-webkit-input-placeholder {
@@ -190,8 +196,7 @@ limitations under the License.
190196

191197
.mx_Login_forgot {
192198
display: block;
193-
font-size: 13px;
194-
opacity: 0.8;
199+
font-size: 15px;
195200
}
196201

197202
.mx_Login_forgot:link {

‎src/skins/vector/themes/status/css/_status.scss‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ a {
3737
text-decoration: none;
3838
}
3939

40+
a:hover {
41+
text-decoration: underline;
42+
}
43+
4044
h1,h2,h3,h4,h5 {
4145
color: $header-color;
4246
font-family: $header-font-family;
@@ -49,6 +53,7 @@ $form-bg-color: $callout-color;
4953
$form-fg-color: #ffffff;
5054

5155
$form-field-bg-color: rgba(244, 242, 247, 0.12);
56+
$form-field-bg-hover-color: rgba(255, 255, 255, 0.2);
5257
$form-field-fg-color: #ffffff;
5358

5459
// ***** End of Status theme specifics ******
@@ -63,6 +68,7 @@ $focus-bg-color: #dddddd;
6368
// button UI (white-on-green in light skin)
6469
$accent-fg-color: #ffffff;
6570
$accent-color: #6CC1F6;
71+
$accent-hover-color: #84cfff;
6672

6773
$selection-fg-color: $primary-bg-color;
6874

@@ -195,6 +201,11 @@ $progressbar-color: #000;
195201
padding-left: 1.5em;
196202
padding-right: 1.5em;
197203
display: inline-block;
204+
transition: background-color .2s ease;
205+
}
206+
207+
@define-mixin mx_DialogButton_hover {
208+
background-color: $accent-hover-color;
198209
}
199210

200211
@define-mixin mx_DialogButton_small {

0 commit comments

Comments
 (0)