aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-04-12 07:25:55 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-04-12 07:25:55 +0000
commit7fca46eda99e80f3ffd48126e356546094a68cc9 (patch)
tree6cb86670629b080ea6eccdc234556a7f254e58a9
parent69f9b21243bbded0f50790ae97cdfe73e6d34144 (diff)
remove duplicate rule definitions and adjust to responsive display, fixes #869
Closes #869
-rw-r--r--resources/assets/stylesheets/fullcalendar.scss47
-rw-r--r--resources/assets/stylesheets/less/fullcalendar.less101
-rw-r--r--resources/assets/stylesheets/studip.less1
3 files changed, 42 insertions, 107 deletions
diff --git a/resources/assets/stylesheets/fullcalendar.scss b/resources/assets/stylesheets/fullcalendar.scss
index 9862337..f5b21f1 100644
--- a/resources/assets/stylesheets/fullcalendar.scss
+++ b/resources/assets/stylesheets/fullcalendar.scss
@@ -11,15 +11,28 @@ a.fc-event, td.fc-event {
}
}
-.fc button.fc-button {
- @include button();
- border-radius: 0;
+.fc {
+ .fc-toolbar.fc-header-toolbar {
+ margin-bottom: 0.5em;
+ }
+
+ .fc-button-group {
+ height: 30px;
+
+ .fc-button {
+ @include button();
+ border-radius: 0;
+
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+ }
}
+
.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active,
.fc button.fc-button.fc-state-active {
- -webkit-box-shadow: none;
box-shadow: none;
background-color: $base-color !important;
@@ -32,7 +45,13 @@ a.fc-event, td.fc-event {
min-height: 0 !important;
}*/
-.fullcalendar-header {
+.studip-fullcalendar-header {
+ /* This shall look like a table caption. */
+ background-color: transparent;
+ color: $base-gray;
+ font-size: 1.4em;
+ text-align: left;
+
&.fullcalendar-dialog{
width: calc(100% - 550px);
vertical-align: middle;
@@ -202,3 +221,21 @@ a.fc-event, td.fc-event {
}
}
}
+
+
+// Responsive
+.responsive-display {
+ .fc-header-toolbar {
+ .fc-button-group {
+ .fc-button {
+ min-width: 0;
+ }
+ }
+ }
+
+ .fc-view-container {
+ .fc-day-header {
+ overflow: hidden;
+ }
+ }
+}
diff --git a/resources/assets/stylesheets/less/fullcalendar.less b/resources/assets/stylesheets/less/fullcalendar.less
deleted file mode 100644
index 1a94655..0000000
--- a/resources/assets/stylesheets/less/fullcalendar.less
+++ /dev/null
@@ -1,101 +0,0 @@
-a.fc-event {
- border-radius: 0;
-
- .fc-time {
- background-color: rgba(255, 255, 255, 0.2);
- font-weight: bold;
- }
-}
-
-.fc button.fc-button {
- .button;
- border-radius: 0;
-}
-
-.fc-button-primary:not(:disabled):active,
-.fc-button-primary:not(:disabled).fc-button-active,
-.fc button.fc-button.fc-state-active {
- -webkit-box-shadow: none;
- box-shadow: none;
-
- background-color: @base-color !important;
- color: white;
-}
-
-/* adjust height: */
-/* .fc-scroller.fc-time-grid-container {
- height: auto !important;
- min-height: 0 !important;
-}*/
-
-.studip-fullcalendar-header {
- &.fullcalendar-dialog{
- width: calc(100% - 550px);
- vertical-align: middle;
- display: inline-block;
- margin-right: 275px;
- }
-}
-
-.fullcalendar-dialogwidget-container {
- border-left: 0;
- display: inline-block;
- flex: 0 0 auto;
- margin-bottom: 1em;
- position: relative;
-
- @width: 270px;
-
- padding-bottom: 7px;
- width: @width;
- z-index: 2;
-
-
- .fullcalendar-dialogwidget-widget {
- background: #fff;
- border: 1px solid @content-color-40;
- margin: 15px 0px 0;
- }
-
- .fullcalendar-dialogwidget-widget-header {
- .clearfix();
- background: @content-color-20;
- color: @base-color;
- font-weight: bold;
- padding: 4px;
- }
-
- select.fullcalendar-dialogwidget-selectlist {
- overflow-y: auto;
- width: 100%;
- }
-
- .fullcalendar-dialogwidget-widget-content {
- border-top: 1px solid @content-color-40;
- padding: 4px;
- transition: all 0.5s;
- }
-}
-
-.fc {
- .fc-toolbar.fc-header-toolbar {
- margin-bottom: 0.5em;
- }
-
- .fc-button-group {
- height: 30px;
-
- .fc-button {
- margin-top: 0;
- margin-bottom: 0;
- }
- }
-}
-
-.studip-fullcalendar-header {
- /* This shall look like a table caption. */
- background-color: transparent;
- color: @base-gray;
- font-size: 1.4em;
- text-align: left;
-}
diff --git a/resources/assets/stylesheets/studip.less b/resources/assets/stylesheets/studip.less
index 4d2c59a..a88e730 100644
--- a/resources/assets/stylesheets/studip.less
+++ b/resources/assets/stylesheets/studip.less
@@ -90,7 +90,6 @@
@import "less/mvv.less";
@import "less/overlapping.less";
-@import "less/fullcalendar.less";
@import "less/feedback.less";