element-web-Github/res/css/views/beta/_BetaCard.pcss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

140 lines
3.7 KiB
Plaintext
Raw Normal View History

/*
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_BetaCard {
margin-bottom: $spacing-20;
padding: $spacing-24;
background-color: $system;
border-radius: 8px;
box-sizing: border-box;
color: $secondary-content;
2021-06-17 23:22:40 +08:00
.mx_BetaCard_columns {
display: flex;
2022-03-28 18:26:14 +08:00
flex-flow: wrap;
gap: $spacing-20;
2022-03-28 18:26:14 +08:00
justify-content: center;
.mx_BetaCard_columns_description {
flex: 1;
2021-06-17 23:22:40 +08:00
.mx_BetaCard_title {
font-weight: var(--font-semi-bold);
2021-06-17 23:22:40 +08:00
font-size: $font-18px;
line-height: $font-22px;
color: $primary-content;
margin: $spacing-4 0 14px; // TODO: use a spacing variable
2022-03-28 18:26:14 +08:00
display: flex;
align-items: center;
column-gap: $spacing-12;
}
2021-06-17 23:22:40 +08:00
.mx_BetaCard_caption {
font-size: $font-15px;
line-height: $font-20px;
}
2022-03-28 18:26:14 +08:00
.mx_BetaCard_buttons {
display: flex;
flex-wrap: wrap-reverse;
gap: $spacing-12;
margin: $spacing-20 auto 0;
2022-03-28 18:26:14 +08:00
.mx_AccessibleButton {
padding: 7px 40px;
width: auto;
flex: 1;
white-space: nowrap; /* text might overflow */
2022-03-28 18:26:14 +08:00
&:nth-child(1) {
order: 2; /* Place feedback button top and right */
2022-03-28 18:26:14 +08:00
}
}
2021-06-17 23:22:40 +08:00
}
.mx_BetaCard_refreshWarning {
margin-top: $spacing-8;
font-size: $font-10px;
text-align: center;
}
.mx_BetaCard_faq {
margin-top: $spacing-20;
2021-06-17 23:22:40 +08:00
font-size: $font-12px;
line-height: $font-15px;
> h4 {
margin: $spacing-12 0 0;
}
> p {
2022-03-28 18:26:14 +08:00
margin: 0;
}
2021-06-17 23:22:40 +08:00
}
}
2022-03-28 18:26:14 +08:00
.mx_BetaCard_columns_image_wrapper {
margin: auto 0;
.mx_BetaCard_columns_image {
width: 100%;
max-width: 300px;
object-fit: contain;
height: 100%;
border-radius: 4px;
}
}
2021-06-17 23:22:40 +08:00
}
2021-06-17 23:22:40 +08:00
.mx_BetaCard_relatedSettings {
.mx_SettingsFlag {
margin: $spacing-16 0 0;
2021-06-17 23:22:40 +08:00
font-size: $font-15px;
line-height: $font-24px;
color: $primary-content;
2021-06-17 23:22:40 +08:00
.mx_SettingsFlag_microcopy {
margin-top: $spacing-4;
2021-06-17 23:22:40 +08:00
font-size: $font-12px;
line-height: $font-15px;
}
}
}
Separate labs and betas more clearly (#8969) * Separate labs and betas more clearly Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Fix tests Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Capitalize `L` in `Labs` Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Use `labsSections` instead of `SdkConfig.get("show_labs_settings")` Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Link to `betas.md` instead of `labs.md` Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Change labs label back to `Labs` Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Improve labs section copy Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Improve labs flags copy Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * i18n Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Fix cypress tests Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Reduce diff Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove empty line Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Fix comment Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove margin-bottom for the last child Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Improve code based on review Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Fix ts Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Improve ts Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Fix ts Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Improve code Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Improve TS Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2022-12-01 05:20:26 +08:00
&:last-child {
margin-bottom: 0;
}
}
.mx_BetaCard_betaPill {
background-color: $accent-alt;
padding: $spacing-4 10px; // TODO: use a spacing variable
border-radius: 8px;
text-transform: uppercase;
font-size: $font-12px;
font-weight: var(--font-semi-bold);
line-height: 15px;
color: $button-primary-fg-color;
2021-04-28 15:05:25 +08:00
display: inline-block;
vertical-align: text-bottom;
word-break: keep-all; /* avoid multiple lines on CJK language */
&.mx_AccessibleButton {
cursor: pointer;
}
}