aboutsummaryrefslogtreecommitdiffstats
path: root/core/css/apps.scss
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-02 22:29:43 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-07-04 18:29:17 +0200
commitc9e8cdd7ad4bdff4a25d5eb5dce5c056fc93de66 (patch)
tree02899e08872ab14db45eb2aff380b7a2e8e87a03 /core/css/apps.scss
parent7e663301ff9461f3a4abc06c3ee80651504bfbe5 (diff)
downloadnextcloud-server-c9e8cdd7ad4bdff4a25d5eb5dce5c056fc93de66.tar.gz
nextcloud-server-c9e8cdd7ad4bdff4a25d5eb5dce5c056fc93de66.zip
feat(theming): Provide `body-container-` variables through theming
* Provide the body container height, radius and margin as theming variables. * Remove unused old variables (`header-menu-profile-item-height` and `list-max-width`) * Fix comment about breakpoint JS location Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/css/apps.scss')
-rw-r--r--core/css/apps.scss15
1 files changed, 3 insertions, 12 deletions
diff --git a/core/css/apps.scss b/core/css/apps.scss
index a52d6e5c97d..a75e23441ed 100644
--- a/core/css/apps.scss
+++ b/core/css/apps.scss
@@ -7,20 +7,11 @@
@use 'sass:math';
@import 'functions';
-
-:root {
- /* - 2px is required for making it look nice */
- --border-radius-rounded: calc(var(--default-clickable-area) / 2 + var(--default-grid-baseline) * 2 - 2px);
-
- --body-container-radius: calc(var(--default-grid-baseline) * 3);
- --body-container-margin: calc(var(--default-grid-baseline) * 2);
- --body-height: calc(100% - env(safe-area-inset-bottom) - 50px - var(--body-container-margin));
-}
-
@media screen and (max-width: variables.$breakpoint-mobile) {
+ // Make the body full width on mobile
:root {
- --body-container-margin: 0px;
- --body-container-radius: 0px;
+ --body-container-margin: 0px !important;
+ --body-container-radius: 0px !important;
}
}