88ed22fe37
on elements with .disabled class by increasing contrast ratio from 1.6:1 to 5.5:1 (> WCAG AA) Change-Id: I28b0de258657ec34db0f3251cffe32dc41bfd511
297 lines
6 KiB
CSS
297 lines
6 KiB
CSS
#main-menu {
|
|
top: 0;
|
|
height: 25px;
|
|
z-index: 1000;
|
|
outline: none;
|
|
float: left;
|
|
background-color: transparent;
|
|
margin-left: 5px;
|
|
white-space: nowrap;
|
|
display: inline;
|
|
}
|
|
|
|
#main-menu.readonly {
|
|
top: 0px;
|
|
}
|
|
|
|
#document-header {
|
|
position: relative;
|
|
background: #ffffff;
|
|
margin-right: 5px;
|
|
}
|
|
/*avoid multiple document-headers in readonly mode*/
|
|
.main-nav.hasnotebookbar.readonly > #main-menu #document-header {
|
|
display: none;
|
|
}
|
|
.document-logo {
|
|
position: relative;
|
|
width: 22px;
|
|
height: 30px;
|
|
}
|
|
|
|
.document-title {
|
|
height: 30px;
|
|
min-width: 84px;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
#document-titlebar {
|
|
position: relative;
|
|
display: inline-table; /*new*/
|
|
table-layout: fixed;
|
|
border-spacing: 5px 0;
|
|
max-height: 39px;
|
|
z-index: 1000;
|
|
width: calc(100% - 890px);
|
|
right: 0px;
|
|
}
|
|
|
|
.main-nav.hasnotebookbar:not(.readonly) #document-titlebar {
|
|
top: -10px;
|
|
}
|
|
.main-nav.readonly #document-titlebar {
|
|
top: 1px;
|
|
}
|
|
.main-nav {
|
|
height: 32px; /* on mouseover menubar items, border emerges */
|
|
width: auto;
|
|
background: #ffffff;
|
|
margin: 3px;
|
|
white-space: nowrap;
|
|
}
|
|
.main-nav.readonly {
|
|
top: -1px; /*update .main-nav.readonly #document-titlebar*/
|
|
position: relative;
|
|
}
|
|
.main-nav.hasnotebookbar:not(.readonly) {
|
|
background: var(--gray-bg-color);
|
|
margin-top: 0px;
|
|
}
|
|
|
|
/* Customizations to sm-simple theme to make it look like LO menu, lo-menu class */
|
|
.lo-menu {
|
|
border: none;
|
|
-webkit-box-shadow: none;
|
|
-moz-box-shadow: none;
|
|
box-shadow: none;
|
|
background: #ffffff;
|
|
-webkit-touch-callout: none; /* iOS Safari */
|
|
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
|
-khtml-user-select: none; /* Konqueror */
|
|
-moz-user-select: none; /* Firefox */
|
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
user-select: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.lo-menu a, .lo-menu a:hover, .lo-menu a:focus, .lo-menu a:active {
|
|
font-family: var(--loleaflet-font);
|
|
font-size: 12px;
|
|
line-height: 15px;
|
|
}
|
|
|
|
.lo-menu ul a, .lo-menu ul a:hover, .lo-menu ul a:focus, .lo-menu ul a:active {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.lo-menu a.disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.lo-menu > li > a, .lo-menu > li > a.has-submenu {
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
padding-top: 8px;
|
|
z-index: 500;
|
|
border-left: 1px solid #ffffff;
|
|
border-right: 1px solid #ffffff;
|
|
border-top: 1px solid transparent;
|
|
}
|
|
|
|
.lo-menu a, .lo-menu a:hover, .lo-menu a:focus, .lo-menu a:active, .lo-menu a.highlighted {
|
|
padding: 5px 22px;
|
|
color: #000;
|
|
}
|
|
.lo-menu a:hover, .lo-menu a:focus, .lo-menu a:active, .lo-menu a.highlighted {
|
|
background: #0b87e7;
|
|
color: #fff;
|
|
}
|
|
.lo-menu > li, .lo-menu > li > .disabled {
|
|
background: #ffffff; /* top-level menus remain greyish */
|
|
border-left-color: transparent;
|
|
}
|
|
.lo-menu > li .disabled {
|
|
color: var(--gray-light-txt--color);
|
|
}
|
|
.lo-menu > li > a:hover, .lo-menu > li > a:focus, .lo-menu > li > a:active, .lo-menu > li > a.highlighted {
|
|
background: #fff;
|
|
color: #000;
|
|
border-color: #bbbbbb;
|
|
border-bottom: 1px solid #bbb;
|
|
}
|
|
.lo-menu > li > a.highlighted {
|
|
border-bottom-color: #fff;
|
|
}
|
|
.lo-menu > li > ul {
|
|
margin-top: -1px !important;
|
|
z-index: 400;
|
|
}
|
|
.lo-menu > li > a span.sub-arrow {
|
|
display: none;
|
|
}
|
|
.lo-menu ul {
|
|
border: 1px solid #bbbbbb;
|
|
background: white;
|
|
}
|
|
.lo-menu ul a span.sub-arrow {
|
|
right: 0;
|
|
margin-right: 5px;
|
|
background: transparent url('images/lc_menu_chevron.svg') no-repeat center right; /* we want them to be transparent always whether mobile or desktop */
|
|
color: transparent;
|
|
/*transform: rotate(180deg);*/
|
|
}
|
|
.lo-menu ul a:hover > span.sub-arrow {
|
|
-webkit-filter: brightness(100);
|
|
filter: brightness(100);
|
|
}
|
|
.lo-menu ul > li {
|
|
border-left: 0;
|
|
border-top: none;
|
|
}
|
|
.lo-menu a.separator {
|
|
height: 1px;
|
|
margin: 4px 0;
|
|
overflow: hidden;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
background-color: var(--gray-bg-color);
|
|
}
|
|
/* lo-menu customizations end */
|
|
|
|
.main-nav:after {
|
|
clear: both;
|
|
content: '\00a0';
|
|
display: block;
|
|
height: 0;
|
|
font: 0px/0 serif;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Hamburger button */
|
|
|
|
.main-menu-btn {
|
|
margin: 2px 10px;
|
|
position: relative;
|
|
display: none;
|
|
width: 17px;
|
|
height: 21px;
|
|
text-indent: 17px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
/* Hamburger icon */
|
|
|
|
.main-menu-btn-icon,
|
|
.main-menu-btn-icon:before,
|
|
.main-menu-btn-icon:after {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 1px;
|
|
height: 2px;
|
|
width: 17px;
|
|
background: #555;
|
|
-webkit-transition: all 0.25s;
|
|
transition: all 0.25s;
|
|
}
|
|
|
|
.main-menu-btn-icon:before {
|
|
content: '';
|
|
top: -7px;
|
|
left: 0;
|
|
}
|
|
|
|
.main-menu-btn-icon:after {
|
|
content: '';
|
|
top: 7px;
|
|
left: 0;
|
|
}
|
|
|
|
/* hide menu state checkbox (keep it visible to screen readers) */
|
|
|
|
#main-menu-state {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
margin: -1px;
|
|
border: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
}
|
|
|
|
|
|
/* always show the menu in desktop view */
|
|
#main-menu-state:not(:checked) ~ #main-menu {
|
|
display: block;
|
|
}
|
|
|
|
#main-menu-state:checked ~ #main-menu {
|
|
display: block;
|
|
}
|
|
|
|
.readonly {
|
|
top: 3px;
|
|
}
|
|
|
|
/* Some more lo-menu specific customizations */
|
|
|
|
/* The smartmenus plugin doesn't seem to have support for icons, so implement our own pseudo-elements */
|
|
.lo-menu-item-checked::before {
|
|
position: absolute;
|
|
content: ' ';
|
|
left: 2px;
|
|
background: url('images/lc_listitem-selected.svg') no-repeat left -2px;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.lo-menu-item-checked:hover::before {
|
|
color: #fff;
|
|
-webkit-filter: brightness(100);
|
|
filter: brightness(100);
|
|
}
|
|
|
|
.writer-icon-img {
|
|
background-image: url('images/x-office-document.svg');
|
|
background-size: 30px 30px;
|
|
background-repeat: no-repeat;
|
|
background-position: bottom;
|
|
}
|
|
|
|
.calc-icon-img {
|
|
background-image: url('images/x-office-spreadsheet.svg');
|
|
background-size: 30px 30px;
|
|
background-repeat: no-repeat;
|
|
background-position: bottom;
|
|
}
|
|
|
|
.impress-icon-img {
|
|
background-image: url('images/x-office-presentation.svg');
|
|
background-size: 30px 30px;
|
|
background-repeat: no-repeat;
|
|
background-position: bottom;
|
|
}
|
|
|
|
#menu-last-mod a {
|
|
color: grey;
|
|
text-decoration: underline;
|
|
padding: 8px 15px 7px;
|
|
z-index: 500;
|
|
border: 1px solid transparent;
|
|
}
|