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;
button {
padding: 0;
}
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;
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
128
129
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);
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
visibility: visible;
}
> .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 {
.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);
}
}
}
}
}
#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: unset;
}
.cw-ribbon-breadcrumb {
max-width: 100%;
min-width: unset;
}
.cw-ribbon-info-text,
.contentbar-icon {
display: none;
}
&:not(.cw-ribbon) {
.contentbar-wrapper-left {
flex: 1;
max-width: 100%;
text-overflow: ellipsis;
}
}
.cw-ribbon-tools {
max-width: 100vw;
right: 0;
}
#toggle-sidebar {
margin-left: -10px;
}

Thomas Hackl
committed
height: calc(100% - 100px);
overflow-y: auto;
position: fixed;
transform: translateX($sidebarOut);
-webkit-transform: translateX($sidebarOut);
z-index: 100;
&.responsive-show {
.sidebar-widget {
width: calc(100% - 30px);
}
}
}
#toc {
margin-right: -16px;
max-width: 100vw;
width: 100vw;
}
#system-notifications {
top: 0;
position: fixed;
left: 0;
width: 100%;
z-index: 1001;
}
.system-notification {
&.system-notification-slide-enter,
&.system-notification-slide-leave-to {
transform: translateY(-100%);
}
&.system-notification-slide-leave,
&.system-notification-slide-enter-to {
transform: translateY(0);
}
}
}
/* 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 {

Thomas Hackl
committed
}
}
#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 {
#content-wrapper {
flex: 1;
}
}
}
.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 {
}
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%;
}
// See https://github.com/ckeditor/ckeditor5/issues/5465 why this is necessary
.ck .ck-sticky-panel .ck-sticky-panel__content_sticky {
top: 120px !important;
}
}
}
/* 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);
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
.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);
930
931
932
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
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;
}
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
#system-notifications.bottom-right {
bottom: unset;
left: 0;
right: unset;
top: 0;
&:not(.system-notifications-login) {
width: 100%;
}
.system-notification {
&.system-notification-slide-enter,
&.system-notification-slide-leave-to {
opacity: 0;
transform: translateY(-100%);
}
&.system-notification-slide-leave,
&.system-notification-slide-enter-to {
opacity: 1;
transform: translateY(0);
}
&.system-notification-slide-enter-active,
&.system-notification-slide-leave-active {
transition: all var(--transition-duration-slow) ease-in-out;
}
}
}