Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 01f574d

Browse files
authored
Merge pull request #48 from elecordapp/style-fixes
Styling fixes
2 parents 5a2f34d + 7c19afb commit 01f574d

17 files changed

Lines changed: 86 additions & 31 deletions

config.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@
3434
"privacy_policy_url": "https://github.com/elecordapp/elecord-web/blob/master/PRIVACY.md",
3535
"setting_defaults": {
3636
"RustCrypto.staged_rollout_percent": 100,
37-
"use_system_theme": false,
38-
"showRedactions": false,
39-
"showTwelveHourTimestamps": true,
40-
"urlPreviewsEnabled_e2ee": true,
41-
"useOnlyCurrentProfiles": true
37+
"use_system_theme": false
4238
},
4339
"features": {
4440
"feature_video_rooms": true,

res/css/_common.pcss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ body {
130130
.mx_SpaceRoomView_landing_inviteButton:before {
131131
background: #101317 !important;
132132
}
133+
/* settings, profile, display name, submit button */
134+
.mx_UserProfileSettings_profile button:nth-child(1) > svg {
135+
color: #101317 !important;
136+
}
133137
}
134138

135139
pre,
@@ -494,6 +498,9 @@ legend {
494498
margin-left: -2px;
495499
margin-right: 4px;
496500
margin-bottom: 2px;
501+
502+
/* elecord, temp colour fix */
503+
filter: invert(1) brightness(0.85);
497504
}
498505

499506
.mx_Dialog_title {

res/css/structures/_RoomView.pcss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Please see LICENSE files in the repository root for full details.
3737
flex: 0 0 auto;
3838
/* margin-right: 2px; */
3939
border: 1px #ffffff1c solid;
40-
border-radius: 50px;
41-
margin: 0 12px 14px;
40+
border-radius: 30px !important;
41+
margin: 0 12px 14px !important;
4242
}
4343
}
4444

res/css/structures/_SpaceHierarchy.pcss

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ Please see LICENSE files in the repository root for full details.
159159
display: grid;
160160
grid-template-columns: 20px auto;
161161
gap: 6px 8px;
162-
align-items: center;
162+
163+
/* elecord, aligned room list */
164+
align-items: start;
165+
163166
flex: 1; /* wrap action buttons */
164167

165168
.mx_SpaceHierarchy_roomTile_avatar {
@@ -173,7 +176,9 @@ Please see LICENSE files in the repository root for full details.
173176

174177
.mx_InfoTooltip,
175178
.mx_SpaceHierarchy_roomTile_joined {
176-
margin-left: 12px;
179+
/* elecord, aligned room list */
180+
/* margin-left: 12px; */
181+
177182
color: $tertiary-content;
178183
font-size: $font-12px;
179184
line-height: $font-15px;
@@ -196,7 +201,10 @@ Please see LICENSE files in the repository root for full details.
196201
}
197202

198203
.mx_SpaceHierarchy_roomTile_joined {
199-
display: inline;
204+
/* elecord, aligned room list */
205+
display: block;
206+
margin-top: 3px;
207+
200208
position: relative;
201209
padding-left: 16px;
202210

res/css/views/auth/_AuthPage.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Please see LICENSE files in the repository root for full details.
4646
overflow: hidden;
4747
position: absolute;
4848
inset: 0px;
49-
border-radius: 7px;
49+
border-radius: 8px;
5050
}
5151

5252
@keyframes lavaLamp {

res/css/views/auth/_CompleteSecurityBody.pcss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ Please see LICENSE files in the repository root for full details.
99

1010
.mx_CompleteSecurityBody {
1111
width: 600px;
12-
color: $authpage-primary-color;
13-
background-color: $background;
14-
border-radius: 4px;
12+
/* color: $authpage-primary-color; */
13+
/* background-color: $background; */
14+
border-radius: 8px;
1515
padding: 20px;
1616
box-sizing: border-box;
1717

18+
/* elecord, custom colours */
19+
color: #ebeef2;
20+
background: linear-gradient(to right, #191d22, #1f1d1e);
21+
outline: solid #7d7d7d5c;
22+
1823
h2 {
1924
font-size: $font-24px;
2025
font-weight: var(--cpd-font-weight-semibold);

res/css/views/dialogs/security/_AccessSecretStorageDialog.pcss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Please see LICENSE files in the repository root for full details.
3737

3838
.mx_AccessSecretStorageDialog_primaryContainer {
3939
.mx_AccessSecretStorageDialog_passPhraseInput {
40-
width: 300px;
40+
width: auto; /* full width input */
4141
border: 1px solid $accent;
4242
border-radius: 5px;
4343
}
@@ -122,6 +122,9 @@ Please see LICENSE files in the repository root for full details.
122122
top: 2px; /* alignment */
123123
background-image: url("@vector-im/compound-design-tokens/icons/error-solid.svg");
124124
background-size: contain;
125+
126+
/* elecord, temp colour fix */
127+
filter: invert(1) brightness(0.7);
125128
}
126129

127130
.mx_AccessSecretStorageDialog_reset_link {

res/css/views/elements/_TagComposer.pcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Please see LICENSE files in the repository root for full details.
1212
flex-direction: row;
1313

1414
.mx_AccessibleButton {
15+
width: fit-content; /* prevent full width */
1516
min-width: 70px;
1617
padding: 0 8px; /* override from button styles */
1718
align-self: stretch; /* override default settingstab style */

res/css/views/rooms/_LiveContentSummary.pcss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,17 @@ Please see LICENSE files in the repository root for full details.
3434
}
3535
}
3636

37+
/* elecord, highlight participants */
38+
.mx_LiveContentSummary_participants {
39+
color: var(--cpd-color-text-action-accent);
40+
}
41+
3742
.mx_LiveContentSummary_participants::before {
3843
display: inline-block;
3944
vertical-align: text-bottom;
4045
content: "";
41-
background-color: $secondary-content;
46+
/* background-color: $secondary-content; */
47+
background-color: var(--cpd-color-text-action-accent);
4248
mask-image: url("$(res)/img/element-icons/group-members.svg");
4349
mask-size: 16px;
4450
width: 16px;

res/css/views/rooms/_ReplyPreview.pcss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,15 @@ Please see LICENSE files in the repository root for full details.
4848
.mx_ReplyPreview {
4949
/* Add box-shadow to the reply preview on the main (left) panel only. */
5050
/* It is not added to the preview on the (right) panel for threads and a chat with a maximized widget. */
51-
box-shadow: 0px -16px 32px $composer-shadow-color;
52-
border-radius: 8px 8px 0 0;
51+
/* box-shadow: 0px -16px 32px $composer-shadow-color; */
52+
/* border-radius: 8px 8px 0 0; */
53+
54+
/* elecord implementation */
55+
filter: drop-shadow(0 -42px 32px rgba(0, 0, 0, 0.18)); /* drop-shadow is more direct */
56+
border-radius: 0 8px 0 0;
57+
/* adjust cancel button position */
58+
.mx_ReplyPreview_header_cancel {
59+
margin-right: 4px;
60+
}
5361
}
5462
}

0 commit comments

Comments
 (0)