Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Pluck out some more applicable styles
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Sep 28, 2021
1 parent 4335cd0 commit 02c5b7e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
32 changes: 32 additions & 0 deletions res/css/views/settings/_JoinRuleSettings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,35 @@ limitations under the License.
}
}
}

.mx_JoinRuleSettings_radioButton {
padding-top: 16px;
margin-bottom: 8px;

.mx_RadioButton_content {
margin-left: 14px;
font-weight: $font-semi-bold;
font-size: $font-15px;
line-height: $font-24px;
color: $primary-content;
display: block;
}

& + span {
display: inline-block;
margin-left: 34px;
margin-bottom: 16px;
font-size: $font-15px;
line-height: $font-24px;
color: $secondary-content;

& + .mx_RadioButton {
border-top: 1px solid $menu-border-color;
}
}
}

.mx_JoinRuleSettings_linkButton {
padding: 0;
font-size: inherit;
}
34 changes: 0 additions & 34 deletions res/css/views/settings/tabs/room/_SecurityRoomSettingsTab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,37 +37,3 @@ limitations under the License.
border-bottom: 1px solid $menu-border-color;
margin-bottom: 32px;
}

.mx_SecurityRoomSettingsTab_joinRule {
.mx_RadioButton {
padding-top: 16px;
margin-bottom: 8px;

.mx_RadioButton_content {
margin-left: 14px;
font-weight: $font-semi-bold;
font-size: $font-15px;
line-height: $font-24px;
color: $primary-content;
display: block;
}
}

> span {
display: inline-block;
margin-left: 34px;
margin-bottom: 16px;
font-size: $font-15px;
line-height: $font-24px;
color: $secondary-content;

& + .mx_RadioButton {
border-top: 1px solid $menu-border-color;
}
}

.mx_AccessibleButton_kind_link {
padding: 0;
font-size: inherit;
}
}
2 changes: 2 additions & 0 deletions src/components/views/settings/JoinRuleSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ const JoinRuleSettings = ({ room, promptUpgrade, onError, beforeChange, closeSet
disabled={disabled}
onClick={onEditRestrictedClick}
kind="link"
className="mx_JoinRuleSettings_linkButton"
>
{ sub }
</AccessibleButton>,
Expand Down Expand Up @@ -286,6 +287,7 @@ const JoinRuleSettings = ({ room, promptUpgrade, onError, beforeChange, closeSet
onChange={onChange}
definitions={definitions}
disabled={disabled}
className="mx_JoinRuleSettings_radioButton"
/>
);
};
Expand Down

0 comments on commit 02c5b7e

Please sign in to comment.