aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2026-01-27 12:03:57 +0000
committerMoritz Strohm <strohm@data-quest.de>2026-01-27 12:03:57 +0000
commit60426a66da804e7970aeeabd62e2975248d76a32 (patch)
treeb2a61eb023b758499510571c72ab620883e166b4
parent1244ae192504578e256817033ccc6520b52354cc (diff)
made the week number smaller in fullcalendar month views, fixes #6161
Closes #6161 Merge request studip/studip!4693
-rw-r--r--resources/assets/stylesheets/scss/fullcalendar.scss8
-rw-r--r--resources/assets/stylesheets/scss/variables.scss3
2 files changed, 10 insertions, 1 deletions
diff --git a/resources/assets/stylesheets/scss/fullcalendar.scss b/resources/assets/stylesheets/scss/fullcalendar.scss
index c3972bc..3cb8ad1 100644
--- a/resources/assets/stylesheets/scss/fullcalendar.scss
+++ b/resources/assets/stylesheets/scss/fullcalendar.scss
@@ -111,6 +111,14 @@
display: none;
}
}
+
+ /*
+ Display the week number a bit smaller so that is doesn't overlap the day number on
+ small screens in portrait orientation:
+ */
+ .fc-daygrid-week-number {
+ font-size: $font-size-tiny;
+ }
}
/* Display the week number at the top of the cell in the top left corner: */
diff --git a/resources/assets/stylesheets/scss/variables.scss b/resources/assets/stylesheets/scss/variables.scss
index 4e7e36f..7198e00 100644
--- a/resources/assets/stylesheets/scss/variables.scss
+++ b/resources/assets/stylesheets/scss/variables.scss
@@ -9,6 +9,7 @@ $font-family-base: "Lato", sans-serif;
$font-size-base: 14px;
$font-size-large: ceil($font-size-base * 1.25); // 18px
$font-size-small: ceil($font-size-base * 0.85); // 12px
+$font-size-tiny: ceil($font-size-base * 0.7); // 10px
$font-size-h1: floor($font-size-base * 1.6); // 22px
$font-size-h2: ceil($font-size-base * 1.4); // 20px
@@ -98,4 +99,4 @@ $button-icons: (
upload: upload,
has-notice: file-text,
has-no-notice: file,
-); \ No newline at end of file
+);