egroupware_official/kdots/assets/styles/framework.less
nathan 493a2432fa Framework WIP:
- Rename EgwApp to EgwFrameworkApp to avoid confusion with api/js/jsapi/EgwApp
- Continued work on narrow screen styles
2024-04-30 10:34:02 -06:00

205 lines
3.7 KiB
Plaintext

html, body {
width: 100vw;
height: 100vh;
overflow: clip;
padding: 0px;
margin: 0px;
}
egw-framework#egw_fw_basecontainer {
--icon-size: 32px;
--sl-tooltip-arrow-size: 0;
/* Internals */
&::part(status-split) {
--max: 150px;
}
&::part(header) {
background-color: var(--primary-background-color);
color: var(--sl-color-neutral-0);
gap: var(--sl-spacing-medium);
font-size: var(--icon-size);
}
/* Content slotted inside */
[slot="logo"] img {
max-width: 220px;
max-height: var(--icon-size);
display: block;
text-align: center;
}
sl-icon-button[slot="header"], et2-image[slot="header"] {
font-size: var(--icon-size);
color: inherit
}
div#egw_fw_toggler {
position: initial;
display: none;
}
#egw_fw_topmenu_info_items {
position: relative;
order: 99;
margin-left: auto;
display: flex;
.topmenu_info_item {
min-width: 1em;
min-height: 1em;
}
}
div#egw_fw_sidebar_r {
position: initial;
top: initial;
}
.egw_fw_ui_sidemenu_entry_header {
display: flex;
gap: var(--sl-spacing-medium);
padding-left: 1em;
}
}
egw-app {
&::part(name) {
display: flex;
align-items: center;
text-wrap: nowrap;
}
}
/*** HEADER ***/
#egw_fw_topmenu_info_items {
display: flex !important;
flex-direction: row-reverse;
height: var(--icon-size);
background-color: #fbfbfb;
& > * {
border: none;
background: transparent;
}
et2-avatar {
--size: var(--icon-size);
}
.topmenu_info_item {
height: var(--icon-size);
width: var(--icon-size);
border-left: 1px solid #bfc0bf;
display: inline-block;
padding-left: 0px;
background-size: 20px;
background-position: center center;
background-repeat: no-repeat;
cursor: pointer;
&:hover {
background-color: var(--sl-input-background-color-hover);
}
}
#topmenu_info_timer {
order: 1;
position: relative;
#topmenu_timer {
position: relative;
top: 10px !important;
display: block;
height: 45px;
width: 45px;
}
&:hover {
cursor: pointer;
}
&:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url(../../../timesheet/templates/default/images/navbar.svg);
background-repeat: no-repeat;
background-size: 32px;
background-position: center center;
filter: opacity(0.3);
}
}
ul a#topmenu_cats {
background-image: url(../../../api/templates/default/images/topmenu_items/category.svg);
}
ul a#topmenu_password {
background-image: url(../../../api/templates/default/images/topmenu_items/password.svg);
}
ul a#topmenu_search {
background-image: url(../../../api/templates/default/images/topmenu_items/search.svg);
}
ul a#topmenu_prefs {
background-image: url(../../../api/templates/default/images/topmenu_items/setup.svg);
}
ul a#topmenu_home {
background-image: url(../../../api/templates/default/images/topmenu_items/home.svg);
}
ul a#topmenu_acl {
background-image: url(../../../api/templates/default/images/topmenu_items/access.svg);
}
ul a#topmenu_useraccount {
background-image: url(../../../api/templates/default/images/accounts.svg);
background-repeat: no-repeat;
background-size: 18px;
background-position-x: -2px;
}
ul a#topmenu_calls {
background-image: url(../../../api/templates/default/images/phone.svg);
background-repeat: no-repeat;
background-position-x: -2px;
}
}
#topmenu_info_logout {
background-image: url(../../../api/templates/default/images/logout.svg);
a {
width: 45px;
height: 45px;
display: inline-block;
}
}
#topmenu_info_print_title {
background-image: url(../../../api/templates/default/images/print.svg);
span {
width: 45px;
height: 45px;
display: inline-block;
}
}
/*** END HEADER ***/
div#egw_fw_basecontainer {
display: none;
}