You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
347 lines
8.0 KiB
Plaintext
347 lines
8.0 KiB
Plaintext
/**
|
|
* Roundcube webmail styles for the Elastic skin
|
|
*
|
|
* Copyright (c) 2017, The Roundcube Dev Team
|
|
*
|
|
* The contents are subject to the Creative Commons Attribution-ShareAlike
|
|
* License. It is allowed to copy, distribute, transmit and to adapt the work
|
|
* by keeping credits to the original authors in the README.md file.
|
|
* See http://creativecommons.org/licenses/by-sa/3.0/ for details.
|
|
*/
|
|
|
|
/*** jQuery-UI widgets' style overrides ***/
|
|
|
|
.ui-widget-overlay {
|
|
background-color: @color-dialog-overlay-background;
|
|
opacity: 1 !important; // override jQuery-UI opacity, the color above is semi-transparent
|
|
}
|
|
|
|
.ui-widget {
|
|
border: 1px solid @color-datepicker-border;
|
|
box-shadow: 3px 3px 5px @color-popover-shadow;
|
|
border-radius: .3rem;
|
|
}
|
|
|
|
.ui-menu {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
max-height: 400px;
|
|
border-radius: .3rem;
|
|
|
|
.ui-state-active {
|
|
border: 0 !important;
|
|
background-color: @color-toolbarmenu-hover-background !important;
|
|
}
|
|
|
|
.ui-menu-item {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ui-menu-item-wrapper {
|
|
margin: 0 !important;
|
|
}
|
|
}
|
|
|
|
.ui-dialog {
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
|
|
&.no-titlebar {
|
|
.ui-dialog-titlebar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui-dialog-titlebar {
|
|
height: @layout-header-height;
|
|
border-bottom: 1px solid @color-dialog-header-border;
|
|
|
|
button {
|
|
&:before {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ui-dialog-title {
|
|
line-height: @layout-header-height;
|
|
font-size: 1.25rem;
|
|
padding: 0 3rem 0 1rem;
|
|
color: @color-dialog-header;
|
|
}
|
|
|
|
.ui-dialog-titlebar-close {
|
|
border: 0;
|
|
color: @color-dialog-header;
|
|
background: transparent;
|
|
right: 0;
|
|
top: 0;
|
|
position: absolute;
|
|
height: (@layout-header-height - .7rem);
|
|
margin: .25rem;
|
|
cursor: pointer;
|
|
|
|
&:before {
|
|
&:extend(.font-icon-class);
|
|
content: @fa-var-times;
|
|
}
|
|
}
|
|
|
|
.ui-dialog-content {
|
|
// fixes resize issue e.g. in qr-code dialog
|
|
box-sizing: initial;
|
|
|
|
& > .popupmenu {
|
|
display: block !important;
|
|
}
|
|
}
|
|
|
|
.ui-dialog-buttonpane {
|
|
.ui-dialog-buttonset {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
|
|
button {
|
|
.overflow-ellipsis;
|
|
min-width: 5rem;
|
|
margin: .65rem .3rem;
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
iframe,
|
|
.ui-dialog-content.iframe {
|
|
padding: 0;
|
|
width: 100% !important;
|
|
height: 100%;
|
|
border: 0;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
// Overwriting this icon generally prevents from loading bigger images sprite from jQuery-UI
|
|
.ui-widget-content .ui-icon.ui-resizable-se {
|
|
background: @icon-resize-corner;
|
|
background-size: cover;
|
|
}
|
|
|
|
/* FIXME: why do I need !important here? */
|
|
|
|
@media screen and (max-width: @screen-width-xs) {
|
|
.ui-dialog {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.ui-resizable-handle,
|
|
.ui-dialog-titlebar-close {
|
|
display: none !important;
|
|
}
|
|
|
|
.ui-dialog-titlebar {
|
|
height: @layout-touch-header-height;
|
|
text-align: center;
|
|
}
|
|
|
|
.ui-dialog-title {
|
|
line-height: @layout-touch-header-height;
|
|
font-size: @layout-header-font-size;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.ui-dialog-content {
|
|
flex: 1;
|
|
&:not(.iframe) {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
.ui-dialog-buttonpane {
|
|
padding: 0 !important;
|
|
text-align: center !important;
|
|
border-top: 1px solid @color-dialog-header-border;
|
|
height: @layout-header-height !important;
|
|
|
|
.ui-dialog-buttonset {
|
|
justify-content: space-around;
|
|
|
|
button {
|
|
margin: 0 !important;
|
|
border: 0 !important;
|
|
box-shadow: none;
|
|
height: @layout-header-height;
|
|
|
|
&:before {
|
|
display: block !important;
|
|
width: auto;
|
|
height: 1.25em;
|
|
margin: 0;
|
|
}
|
|
|
|
&.btn-primary {
|
|
color: @color-btn-primary-background;
|
|
background: transparent;
|
|
}
|
|
|
|
&.btn-secondary {
|
|
color: @color-toolbar-button;
|
|
background: transparent;
|
|
}
|
|
|
|
&.btn-danger {
|
|
color: @color-btn-danger-background;
|
|
background: transparent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Datepicker widget */
|
|
|
|
.ui-datepicker {
|
|
z-index: 3 !important; // above Bootstrap form controls that use z-index: 3
|
|
// Always display datepicker centered, overwriting widgets position
|
|
position: fixed !important;
|
|
top: 50% !important;
|
|
left: 50% !important;
|
|
transform: translate(-50%, -50%);
|
|
box-shadow: 10px 10px 10px 1000px @color-dialog-overlay-background;
|
|
|
|
.ui-datepicker-header,
|
|
.ui-datepicker-title {
|
|
line-height: 4rem;
|
|
height: 4rem;
|
|
padding: 0;
|
|
}
|
|
|
|
.ui-datepicker-header {
|
|
border-bottom: 1px solid @color-dialog-header-border;
|
|
|
|
a {
|
|
height: 4rem;
|
|
}
|
|
|
|
select {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
.ui-icon {
|
|
background-image: none !important;
|
|
background-position: none !important;
|
|
}
|
|
|
|
.ui-datepicker-prev,
|
|
.ui-datepicker-next {
|
|
cursor: pointer;
|
|
width: auto;
|
|
|
|
&:before {
|
|
&:extend(.font-icon-class);
|
|
content: "\f053";
|
|
margin: 0 .25em;
|
|
height: auto;
|
|
width: 1em;
|
|
}
|
|
}
|
|
|
|
.ui-datepicker-prev:before {
|
|
content: "\f053";
|
|
}
|
|
|
|
.ui-datepicker-next:before {
|
|
content: "\f054";
|
|
}
|
|
|
|
td a {
|
|
padding: 0;
|
|
line-height: 1.8em;
|
|
border-radius: .3rem;
|
|
}
|
|
|
|
.ui-state-default,
|
|
&.ui-widget-content .ui-state-default {
|
|
border: 0;
|
|
background: transparent;
|
|
color: @color-datepicker-font;
|
|
}
|
|
|
|
.ui-state-highlight,
|
|
&.ui-widget-content .ui-state-highlight {
|
|
background: @color-datepicker-highlight-background;
|
|
color: @color-datepicker-highlight;
|
|
}
|
|
|
|
.ui-state-active,
|
|
&.ui-widget-content .ui-state-active {
|
|
background: @color-datepicker-active-background;
|
|
color: @color-datepicker-active;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
html.touch {
|
|
.ui-datepicker {
|
|
min-width: (@screen-width-mini - 20px);
|
|
|
|
td a {
|
|
font-size: 1.2em;
|
|
line-height: 2.2em;
|
|
}
|
|
}
|
|
}
|
|
|
|
.minicolors-panel {
|
|
border: 1px solid @color-datepicker-border;
|
|
box-shadow: 3px 3px 5px @color-popover-shadow;
|
|
border-radius: .3rem;
|
|
height: 152px;
|
|
padding: 1px;
|
|
}
|
|
|
|
.input-group {
|
|
.minicolors-input {
|
|
width: 100%;
|
|
// needed so minicolors panel is not out of screen
|
|
// when the input is on the right side, e.g. Calendar plugin settings
|
|
// This is obviously minicolors script issue
|
|
min-width: 130px;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
}
|
|
|
|
.minicolors-swatch {
|
|
height: 25px !important;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: @screen-width-mini) {
|
|
.ui-widget-content {
|
|
border-radius: 0;
|
|
left: 0 !important;
|
|
}
|
|
|
|
.ui-menu {
|
|
border-radius: .3rem;
|
|
left: 15px !important;
|
|
right: 15px;
|
|
width: auto;
|
|
}
|
|
|
|
.ui-dialog {
|
|
.ui-dialog-content:not(.iframe) {
|
|
padding: .65rem;
|
|
}
|
|
}
|
|
|
|
.ui-autocomplete {
|
|
// TODO: e.g. time input autocompletion on mobile
|
|
}
|
|
}
|