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);

Jan-Hendrik Willms
committed
transition: var(--transition-duration) ease-in-out;
}
.menu-open {
cursor: pointer;
transform: rotate(90deg);

Jan-Hendrik Willms
committed
transition: var(--transition-duration) ease-in-out;
#responsive-navigation-button:not(.slide-enter-active):not(.slide-leave-active) {
}
#responsive-navigation-items {
background-color: var(--base-color);

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;

Jan-Hendrik Willms
committed
transition: all var(--transition-duration) ease-in-out;
88
89
90
91
92
93
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
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: var(--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: var(--base-color);
display: flex;
flex-wrap: wrap;
list-style-type: none;
margin: 0px;
&:not(:last-child) {
border-bottom: 1px solid var(--white);
}
&.navigation-up,
&.navigation-current {
.navigation-icon {
img {
padding-top: 0;
}
}
.navigation-title {
padding: 10px 10px 10px 0;
}
&:hover {
background-color: var(--base-color-80);
background-color: var(--base-color-80);
color: var(--white);
cursor: pointer;
}
button {
color: var(--white);
cursor: pointer;
display: flex;
flex: 0;
text-align: center;
width: 100%;
img,
svg {
padding-top: 12px;
}
&.navigation-in {
border-left: 1px solid var(--base-color-60);
}
}
&:not(.navigation-current):not(.navigation-up) {
button:hover {
background-color: var(--base-color-80);
}
}
}
.navigation-title {
color: var(--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;
}
}
img,
svg {
&:not(.avatar) {
filter: contrast(0) brightness(2);
}
margin-right: 10px;
}
}
a {
flex: 0;
&:hover {
background-color: var(--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 {
#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: var(--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 {

Jan-Hendrik Willms
committed
animation: slide-out var(--transition-duration) backwards;
}
&.responsive-show {

Jan-Hendrik Willms
committed
animation: slide-in var(--transition-duration) forwards;

Thomas Hackl
committed
position: sticky;

Thomas Hackl
committed
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);
}
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
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 {
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
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-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-sticky {
position: unset;
width: calc(100vw - 30px);
}
}
#toggle-sidebar {
margin-left: -10px;
}

Thomas Hackl
committed
height: calc(100% - 100px);
overflow-y: auto;

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 {
}
}
}
}
}
#toc {
position: absolute;
right: -29px;
top: -25px;
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
}
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: var(--dark-gray-color-10);
border-bottom: 1px solid var(--dark-gray-color-40);
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
.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);
}
}
}
#header-links {
display: none;
}
#background-desktop {
display: none;
}
#background-mobile {
display: inherit;
width: 100vw;
height: 100vh;
top:0;
left: 0;
}
box-shadow: unset;
margin: 0;
width: calc(100vw - 40px);
nav ul {
display: flex;
flex-direction: column;
width: 100%;
.login_link {
width: unset;
#faq_box {
margin: -20px 0 0 0;
}
}
}
.responsive-display {
#quicksearch_item {
padding: 0;
}
#search_sem_quick_search_frame {
display: flex;
flex-direction: row;
justify-content: flex-end;
.quicksearchbox {

Jan-Hendrik Willms
committed
transition: all var(--transition-duration);
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
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;
}
}