Newer
Older
@use "../mixins/colors.scss";
@import "breakpoints";
@import "buttons";
@import "sidebar";
$header-bar-container-height: 40px;
$responsive-menu-width: 1.5 * $sidebar-width;
$sidebarIn: -15px;
$sidebarOut: -330px;
#responsive-toggle-desktop,
#responsive-toggle-fullscreen,
#responsive-toggle-focusmode {
display: none;
}
#responsive-toggle-fullscreen,
#responsive-toggle-focusmode {
img {
cursor: pointer;
}
}
#non-responsive-toggle-fullscreen {
margin-left: auto;
margin-right: 10px;
position: relative;
top: 2px;
img {
cursor: pointer;
}
}
#responsive-menu {
font-size: $font-size-base;
z-index: 1002;
.responsive-navigation-header {
display: flex;
.menu-closed {
cursor: pointer;
transform: rotate(0deg);
@media not prefers-reduced-motion {
transition: $transition-duration ease-in-out;
}
}
.menu-open {
cursor: pointer;
transform: rotate(90deg);
@media not prefers-reduced-motion {
transition: $transition-duration ease-in-out;
}
}
}
}
#responsive-navigation-button:not(.slide-enter-active):not(.slide-leave-active) {
}
#responsive-navigation-items {
background-color: $base-color;
left: 0;

Thomas Hackl
committed
max-height: calc(100vh - $header-bar-container-height - 5px);
max-width: $responsive-menu-width;
overflow-y: auto;
padding-bottom: 5px;
position: fixed;
top: 40px;
/* Safari only */
@media not all and (min-resolution: .001dpcm) {
@supports (-webkit-appearance: none) {
top: 43px;
}
}
width: $responsive-menu-width;
@media not prefers-reduced-motion {
transition: all $transition-duration ease-in-out;
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
}
header {
background-image: url("#{$image-path}/sidebar/noicon-sidebar.png");
background-size: cover;
display: flex;
flex-wrap: wrap;
max-height: 250px;
overflow-y: auto;
padding: 10px;
.profile-info {
flex: auto;
font-size: $font-size-small;
padding: 20px;
position: relative;
.profile-pic {
width: 100%;
img,
svg {
cursor: pointer;
height: 50px;
width: 50px;
}
}
}
> div {
display: flex;
width: 100%;
.avatar-navigation {
flex: auto;
padding-left: 10px;
.navigation-item {
background-color: transparent;
&:hover {
background-color: $base-color-80;
}
}
}
}
.open-avatarmenu,
.close-avatarmenu {
button {
cursor: pointer;
position: relative;
top: calc(50% - 12px);
}
}
}
.main-navigation {
margin: 0 5px;
padding: 0 5px;
}
.navigation-item {
background-color: $base-color;
display: flex;
flex-wrap: wrap;
list-style-type: none;
margin: 0px;
&:not(:last-child) {
border-bottom: 1px solid $white;
}
&.navigation-up,
&.navigation-current {
.navigation-icon {
img {
padding-top: 0;
}
}
.navigation-title {
padding: 10px 10px 10px 0;
}
&:hover {
background-color: $base-color-80;
}
}
background-color: $base-color-80;
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
}
a {
color: $white;
cursor: pointer;
}
button {
color: $white;
cursor: pointer;
display: flex;
flex: 0;
text-align: center;
width: 100%;
img,
svg {
padding-top: 12px;
}
&.navigation-in {
border-left: 1px solid $base-color-60;
}
}
&:not(.navigation-current):not(.navigation-up) {
button:hover {
background-color: $base-color-80;
}
}
}
.navigation-title {
color: $white;
flex: 1;
> a {
display: inline-block;
padding: 10px 10px 10px 5px;
text-align: left;
width: calc(100% - 15px);
.navigation-icon {
flex: 0;
width: 35px;
}
.navigation-text {
flex: 1;
padding-top: 2px;
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
}
}
img,
svg {
vertical-align: text-bottom;
margin-right: 10px;
}
}
a {
flex: 0;
&:hover {
background-color: $base-color-80;
}
}
img, svg {
vertical-align: text-bottom;
}
}

Thomas Hackl
committed
#responsive-contentbar-container {
position: fixed;
width: 100vw;
z-index: 1000;
.responsive-display,
.fullscreen-mode body:not(.consuming_mode) {
body {
display: inherit;
}
#responsive-menu {
flex: 0;
}
#site-title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#quicksearch_item,
#avatar-menu-container,
#current-page-structure {
display: none;
}
#header-links {
> ul {
> li:not(#responsive-toggle-fullscreen):not(#responsive-toggle-focusmode):not(.helpbar-container) {
display: none;
}
> li.helpbar-container {
float: unset;
margin-top: 5px;
}
}
#notification-container,
.header_avatar_container,
#sidebar-menu {
display: none;
}
}
#navigation-level-1 {
display: none;
}
#sidebar {
background-color: $white;

Thomas Hackl
committed
max-height: calc(100vh - 100px);

Thomas Hackl
committed
left: 15px;
position: absolute;

Thomas Hackl
committed
top: 116px;
transform: translateX($sidebarOut);

Thomas Hackl
committed
visibility: hidden;
z-index: 100;
&.responsive-hide {
@media not prefers-reduced-motion {
animation: slide-out $transition-duration backwards;
}
}
&.responsive-show {
@media not prefers-reduced-motion {
animation: slide-in $transition-duration forwards;

Thomas Hackl
committed
position: sticky;
top: 100px;
visibility: visible;
}
.sidebar-image {
display: none;
}
> .sidebar-widget {
margin-top: 0;
}
> .sidebar-widget ~ .sidebar-widget {
margin-top: 15px;
}
@keyframes slide-in {

Thomas Hackl
committed
0% {
transform: translateX($sidebarOut);
}
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
100% {
transform: translateX($sidebarIn);
}
}
@keyframes slide-out {
0% {
transform: translateX($sidebarIn);
}
100% {
transform: translateX($sidebarOut);
}
}
}
#sidebar-navigation {
display: none !important;
}
#current-page-structure {
#navigation-level-2 {
display: none !important;
}
}

Thomas Hackl
committed
margin-top: 65px;
width: calc(100vw - 2 * $page-margin);
}
.cw-ribbon-sticky-bottom,
.cw-ribbon-sticky-spacer,
.cw-ribbon-sticky-top {
display: none;
}
#responsive-contentbar {
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
margin-bottom: 15px;
padding-bottom: 0.5em;
.contentbar-nav,
.cw-ribbon-nav {
.contentbar-button {
&.contentbar-button-sidebar {
cursor: pointer;
margin-right: 10px;
img {
transform: rotate(0deg);
}
&.contentbar-button-sidebar-open {
img {
transform: rotate(180deg);
}
}
}
}
}
.contentbar-wrapper-left {
flex: 1;
max-width: calc(100% - 70px);
& > .contentbar-icon {
margin-right: 15px;
}
.contentbar-breadcrumb {
font-size: $font-size-large;
> img {
margin-left: 15px;
width: 24px;
}
> span {
display: inline;
flex-shrink: 10000;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
> .contentbar-wrapper-right {

Thomas Hackl
committed
flex: 0;
.contentbar-button,
nav {
position: relative;
}
}
&.cw-ribbon {
.cw-ribbon-tools {
.cw-tabs-nav {
height: 52px;
button {
&.is-active::after {
margin-top: 10px;
}
}
}
&.cw-ribbon-sticky {
position: unset;
width: calc(100vw - 30px);
}
}

Thomas Hackl
committed
max-width: 100vw;
position: absolute;
right: -8px;
}
#toc_header {
height: 47px;
}
#main-footer {
display: none;
}
}
.responsive-display:not(.fullscreen-mode) {
#top-bar {
padding: 0 3px;
}
#index,
#login {
#top-bar {
padding: 0 20px;
}
#responsive-contentbar-container {
display: none;
}
#responsive-menu {
margin-left: -7px;
padding: 0 5px;
width: calc(100% - 56px);
}
#responsive-navigation-items {
max-width: unset;
width: 100%;
}
#responsive-contentbar {
&.cw-ribbon {
.cw-ribbon-tools {
top: 40px;
}
}
&.cw-ribbon-sticky {
position: unset;
width: calc(100vw - 30px);
}
}
#toggle-sidebar {
margin-left: -10px;
}
#sidebar {
height: 100%;
position: fixed;

Thomas Hackl
committed
top: 75px;
transform: translateX($sidebarOut);
-webkit-transform: translateX($sidebarOut);
top: 80px;
z-index: 100;
&.responsive-show {
width: 100%;
.sidebar-widget {
width: calc(100% - 30px);
}
}
}
}
/* Settings especially for fullscreen mode */
.fullscreen-mode:not(.responsive-display) {
body:not(.consuming_mode) {
display: flex;
flex-direction: row;
flex-wrap: wrap;

Thomas Hackl
committed
&.fullscreen-sidebar-shown {
display: grid;
grid-template-columns: ($sidebar-width + $sidebar-padding) calc(100vw - $sidebar-width - $sidebar-padding - 35px);
#content-wrapper {
max-width: 100%;
}
}
#top-bar {
max-height: unset;
opacity: 1;
overflow: unset;
}
#main-header {
flex-basis: 100%;
}
#header-links {
margin-left: auto;
ul {
li {
&:not(#responsive-toggle-fullscreen):not(#responsive-toggle-focusmode) {
padding: 0;
}
.helpbar-container {
right: 0;
}
}
}
}
#responsive-toggle-fullscreen,
#responsive-toggle-focusmode {
margin-top: 4px;
padding: 4px 0 0;
}
#responsive-toggle-fullscreen {
display: block;
}
.contentbar:not(#responsive-contentbar) {
display: none;
}
#responsive-contentbar {
padding-left: 15px;
.contentbar-nav,
.cw-ribbon-nav {
margin-left: -8px;
}
}
#content-wrapper {
flex: 1;
margin-top: 75px;
min-height: calc(100vh - 150px);
}
}
}
.consuming_mode {
display: unset;

Thomas Hackl
committed
#main-header,
#sidebar,
#main-footer,
#wikifooter {
display: none;
}
#content-wrapper {
display: block;
margin-left: auto;
margin-right: auto;
max-width: $max-content-width;
min-height: 100vh;
padding-top: 10px;
}
margin: 10px;
padding-left: 20px;
padding-right: 20px;
width: calc(100% - 60px);
.action-menu {
display: none;
}
}
.cw-structural-element-consumemode {
position: unset;
.cw-container-wrapper-consume {
padding-top: 15px;
}
.cw-ribbon-wrapper-consume {
position: unset;
.cw-ribbon-consume {
position: unset;
.cw-ribbon-consume-bottom {
height: unset;
}
}
}
}
}
#toc {
position: absolute;
right: -29px;
top: -25px;
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
}
html:not(.responsive-display):not(.fullscreen-mode) {
#responsive-navigation {
display: none;
}
body.fixed {
#responsive-navigation {
display: block;
}
#responsive-navigation-items {
margin-top: -5px;
width: 100%;
}
}
}
/* content from old responsive.less */
.responsive-display {
@include media-breakpoint-small-down() {
#navigation-level-1,
#navigation-level1-items,
.current_page,
#tabs,
#footer,
.tabs_wrapper .colorblock {
display: none !important;
}
#layout_wrapper #current-page-structure {
#navigation-level-2 {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
background-color: $dark-gray-color-10;
border-bottom: 1px solid $dark-gray-color-40;
.colorblock,
#context-title,
.context_icon,
.tabs_wrapper {
transition: unset;
}
#context-title,
.tabs_wrapper {
background: transparent;
border-width: 0;
flex: 1;
}
#context-title {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ .tabs_wrapper {
flex: 0;
align-self: flex-end;
}
}
}
}
#layout_wrapper #current-page-structure .tabs_wrapper {
justify-content: flex-end;
.helpbar-container {
top: 0px;
right: 6px;
}
}
.responsive-hidden {
display: none;
}
#notification_marker {
display: inline-block;
margin-top: 0;
vertical-align: initial;
width: 22px;
padding-left: 5px;
padding-right: 5px;
height: 20px;
line-height: 20px;
}
#avatar-menu-container {
position: relative;
bottom: 0px;
right: 0px;
line-height: 20px !important;
#avatar-menu {
display: none;
}
&::after {
display: none !important;
}
}
#top-bar {
box-sizing: border-box;
height: $header-bar-container-height;
position: fixed;
top: 0;
margin-left: 0px;
margin-right: 0px;
width: 100%;
}
#header-links, #header-links ul {
box-sizing: border-box;
flex: 1;
}
#header-links {
flex: 1 !important;
.list {
&::before,
&::after {
display: none;
}
$width: 300px;
$arrow-height: 10px;
margin-top: 2px;
width: $width;
max-width: $width;
&.below {
left: (-$width + 90px);
&:before {
left: ($width - 90px);
}
}
}
> ul > li {
flex: 1 0 auto;
&:first-child {
flex: 1 1 100%;
}
}
}
#notification-container {
position: inherit !important;
/*top: 8px;*/
width: 32px;
height: 20px;
}
#responsive-container {
display: block;
}
#current-page-structure {
margin-left: 0;
margin-right: 0;
}
#current-page-structure,
#top-bar,
#navigation-level-1 {
min-width: inherit !important;
}
#index,
#login,
#request_new_password,
#web_migrate {
#background-desktop,
#background-mobile {
position: fixed;
}
}
}
@include media-breakpoint-tiny-down() {
#index,
#login,
#request_new_password,
#web_migrate {
#responsive-contentbar {
display: none;
}

Jan-Hendrik Willms
committed
#content {
margin: 0;
padding: 0;

Thomas Hackl
committed
.messagebox {
margin: 0;
width: calc(100vw - 74px);
}
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
}
}
#header-links {
display: none;
}
#background-desktop {
display: none;
}
#background-mobile {
display: inherit;
width: 100vw;
height: 100vh;
top:0;
left: 0;
}
#loginbox {
box-shadow: unset;
margin: 0;
width: calc(100vw - 40px);
nav ul {
display: flex;
flex-direction: column;
width: 100%;
.login_link {
width: unset;
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
}
}
}
}
}
.responsive-display {
#quicksearch_item {
padding: 0;
}
#search_sem_quick_search_frame {
display: flex;
flex-direction: row;
justify-content: flex-end;
.quicksearchbox {
transition: all 300ms;
opacity: 0;
max-width: 0;
}
&.open {
.quicksearchbox {
opacity: 1;
max-width: 1000px;
width: 100% !important;
}
}
}
#header-links {
ul {
li:first-child {
flex: 1 0 auto;
}
li#quicksearch_item {
flex: 1 1 100%;
}
}
}
table.default tfoot .button {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.ui-dialog.ui-widget.ui-widget-content.studip-confirmation {
min-width: 20vw;
max-width: 100vw;
}
}