mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 01:05:53 +03:00
35c49a8cd8
* Add font-size: inherit to link button Remove redundant font-size settings _FeedbackDialog.scss _GenericFeatureFeedbackDialog.scss _Login.scss _NewRoomIntro.scss _NotificationSettingsTab.scss _PinnedEventTile.scss _PreferencesUserSettingsTab.scss _SpaceCreateMenu.scss _ToastContainer.scss _UserMenu.scss Specify font-size - _ProfileSettings.scss - _SpaceBasicSettings.scss - _SpaceSettingsDialog.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Add line-height: inherit to link button Remove redundant setting - _GenericFeatureFeedbackDialog.scss - _PinnedEventTile.scss - _SpaceCreateMenu.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Add font-weight: normal to link button Remove redundant setting - _SpotlightDialog.scss - _UserMenu.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Dedupe _link and _link_inline Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Set inline to "link_inline" Treat the button as its name indicates. For elements that should not be inlined, "link" should be used. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
85 lines
2.3 KiB
SCSS
85 lines
2.3 KiB
SCSS
/*
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
.mx_SpaceBasicSettings {
|
|
.mx_Field {
|
|
margin: 24px 0;
|
|
}
|
|
|
|
.mx_SpaceBasicSettings_avatarContainer {
|
|
display: flex;
|
|
margin-top: 24px;
|
|
|
|
.mx_SpaceBasicSettings_avatar {
|
|
position: relative;
|
|
height: 80px;
|
|
width: 80px;
|
|
background-color: $tertiary-content;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
img.mx_SpaceBasicSettings_avatar {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
// only show it when the button is a div and not an img (has avatar)
|
|
div.mx_SpaceBasicSettings_avatar {
|
|
cursor: pointer;
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
height: 80px;
|
|
width: 80px;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: #ffffff; // white icon fill
|
|
mask-repeat: no-repeat;
|
|
mask-position: center;
|
|
mask-size: 20px;
|
|
mask-image: url('$(res)/img/element-icons/camera.svg');
|
|
}
|
|
}
|
|
|
|
> input[type="file"] {
|
|
display: none;
|
|
}
|
|
|
|
> .mx_AccessibleButton_kind_link {
|
|
display: inline-block;
|
|
margin: auto 18px;
|
|
color: #368bd6;
|
|
font-size: $font-14px; // See _SpaceSettingsDialog.scss
|
|
}
|
|
|
|
> .mx_SpaceBasicSettings_avatar_remove {
|
|
color: $alert;
|
|
}
|
|
}
|
|
|
|
.mx_AccessibleButton_hasKind {
|
|
margin-left: auto;
|
|
display: block;
|
|
width: min-content;
|
|
}
|
|
|
|
.mx_AccessibleButton_disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
}
|