web-apps/apps/common/forms/resources/less/common.less

701 lines
17 KiB
Plaintext
Raw Normal View History

2021-08-07 08:44:58 +00:00
@import "../../../../common/main/resources/less/asc-mixins.less";
// Bootstrap overwrite
@import "../../../../common/main/resources/less/variables.less";
@import "../../../../common/main/resources/less/colors-table.less";
@import "../../../../common/main/resources/less/colors-table-classic.less";
@import "../../../../common/main/resources/less/colors-table-dark.less";
2021-08-06 10:55:26 +00:00
// Core variables and mixins
2021-08-07 08:44:58 +00:00
//@import "../../../../../vendor/bootstrap/less/variables.less";
2021-08-06 10:55:26 +00:00
@icon-font-path: "../../../../../vendor/bootstrap/dist/fonts/";
@import "../../../../../vendor/bootstrap/less/mixins.less";
// Reset
@import "../../../../../vendor/bootstrap/less/normalize.less";
2021-08-07 08:44:58 +00:00
//@import "../../../../../vendor/bootstrap/less/print.less";
2021-08-06 10:55:26 +00:00
// Core CSS
@import "../../../../../vendor/bootstrap/less/scaffolding.less";
@import "../../../../../vendor/bootstrap/less/type.less";
//@import "code.less";
//@import "grid.less";
//@import "tables.less";
@import "../../../../../vendor/bootstrap/less/forms.less";
@import "../../../../../vendor/bootstrap/less/buttons.less";
// Components
@import "../../../../../vendor/bootstrap/less/component-animations.less";
//@import "../../../../../vendor/bootstrap/less/glyphicons.less";
//@import "dropdowns.less";
//@import "button-groups.less";
//@import "input-groups.less";
//@import "navs.less";
//@import "navbar.less";
//@import "breadcrumbs.less";
//@import "pagination.less";
//@import "pager.less";
2021-08-07 08:44:58 +00:00
//@import "../../../../../vendor/bootstrap/less/labels.less";
2021-08-06 10:55:26 +00:00
//@import "badges.less";
//@import "jumbotron.less";
//@import "thumbnails.less";
2021-08-07 08:44:58 +00:00
//@import "../../../../../vendor/bootstrap/less/alerts.less";
2021-08-06 10:55:26 +00:00
//@import "progress-bars.less";
//@import "media.less";
//@import "list-group.less";
//@import "panels.less";
//@import "wells.less";
2021-08-07 08:44:58 +00:00
//@import "../../../../../vendor/bootstrap/less/close.less";
2021-08-06 10:55:26 +00:00
// Components w/ JavaScript
2021-08-07 08:44:58 +00:00
//@import "../../../../../vendor/bootstrap/less/modals.less";
2021-08-06 10:55:26 +00:00
@import "../../../../../vendor/bootstrap/less/tooltip.less";
//@import "../../../../../vendor/bootstrap/less/popovers.less";
@import "../../../../../vendor/bootstrap/less/dropdowns.less";
2021-08-07 08:44:58 +00:00
@import "../../../../../vendor/bootstrap/less/button-groups.less";
@import "../../../../../vendor/bootstrap/less/input-groups.less";
2021-08-06 10:55:26 +00:00
//@import "carousel.less";
// Utility classes
@import "../../../../../vendor/bootstrap/less/utilities.less";
@import "../../../../../vendor/bootstrap/less/responsive-utilities.less";
2021-08-07 08:44:58 +00:00
@import "../../../../common/main/resources/less/buttons.less";
@import "../../../../common/main/resources/less/dropdown-menu.less";
@import "../../../../common/main/resources/less/dropdown-submenu.less";
@import "../../../../common/main/resources/less/separator.less";
@import "../../../../common/main/resources/less/input.less";
2021-11-30 10:44:18 +00:00
@import "../../../../common/main/resources/less/combobox.less";
2021-08-07 08:44:58 +00:00
@import "../../../../common/main/resources/less/window.less";
@import "../../../../common/main/resources/less/loadmask.less";
@import "../../../../common/main/resources/less/dataview.less";
@import "../../../../common/main/resources/less/tooltip.less";
@import "../../../../common/main/resources/less/scroller.less";
@import "../../../../common/main/resources/less/synchronize-tip.less";
@import "../../../../common/main/resources/less/common.less";
@import "../../../../common/main/resources/less/winxp_fix.less";
@import "../../../../common/main/resources/less/calendar.less";
2021-08-20 08:22:17 +00:00
@import "../../../../common/main/resources/less/spinner.less";
2021-11-10 14:41:01 +00:00
@import "../../../../common/main/resources/less/checkbox.less";
2021-11-30 10:44:18 +00:00
@import "../../../../common/main/resources/less/opendialog.less";
2022-02-22 15:23:37 +00:00
@import "../../../../common/main/resources/less/advanced-settings-window.less";
2022-06-07 14:57:01 +00:00
@import "../../../../common/main/resources/less/searchdialog.less";
2021-08-06 10:55:26 +00:00
2021-09-23 21:04:23 +00:00
@toolbarBorderColor: @border-toolbar-ie;
@toolbarBorderColor: @border-toolbar;
@toolbarTopColor: @background-toolbar-ie;
@toolbarTopColor: @background-toolbar;
2021-08-06 10:55:26 +00:00
@toolbarFontSize: 12px;
@iconSpriteCommonPath: "../../../../common/forms/resources/img/glyphicons.png";
@icon-socnet-size: 40px;
2021-08-20 20:31:00 +00:00
@loadmask-zindex: 10000;
2021-08-06 10:55:26 +00:00
.embed-body {
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
font-size: @toolbarFontSize;
overflow: hidden;
2021-08-18 18:29:47 +00:00
color: @text-normal-ie;
color: @text-normal;
2021-08-06 10:55:26 +00:00
}
// Document Viewer
// -------------------------
.viewer {
position: absolute;
margin: 0;
padding: 0;
left: 0;
right: 0;
&.top {
2021-09-29 13:52:28 +00:00
top: 40px;
2021-08-06 10:55:26 +00:00
bottom: 0;
}
&.bottom {
top: 0;
bottom: 46px;
}
}
// Toolbar
// -------------------------
.toolbar {
position: fixed;
font-size: @toolbarFontSize;
min-width: 340px;
z-index: 100;
background-color: @toolbarTopColor;
display: flex;
align-items: center;
white-space: nowrap;
&.top {
top: 0;
left: 0;
width: 100%;
2021-09-29 13:52:28 +00:00
height: 40px;
2021-08-06 10:55:26 +00:00
2021-09-23 21:04:23 +00:00
.box-inner-shadow(0 -1px 0 @toolbarBorderColor);
2021-08-06 10:55:26 +00:00
}
.group {
margin: 0;
padding: 0;
.item {
input {
2021-08-18 21:52:04 +00:00
font-size: inherit;
2021-08-06 10:55:26 +00:00
padding: 0;
text-align: right;
}
.text {
cursor: default;
}
}
&.left {
left: 0;
padding-left: 10px;
.item {
float: left;
}
& > div {
display: inline-block;
vertical-align: middle;
}
}
&.right {
right: 0;
padding-right: 10px;
.item {
display: inline-block;
}
}
&.center {
display: flex;
justify-content: center;
flex-grow: 1;
overflow: hidden;
padding: 0 20px;
#title-doc-name {
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.margin-right-small {
margin-right: 8px;
}
.margin-right-large {
margin-right: 12px;
}
2021-08-19 20:09:18 +00:00
.margin-left-small {
margin-left: 8px;
}
.margin-left-large {
margin-left: 12px;
}
2021-08-06 10:55:26 +00:00
}
// Logo
// -------------------------
.brand-logo {
display: block;
width: 100px;
2021-09-27 15:14:01 +00:00
height: 20px;
2021-09-24 22:33:02 +00:00
background: data-uri('../../../../common/main/resources/img/header/dark-logo_s.svg') no-repeat;
}
.theme-dark {
.brand-logo {
background: data-uri('../../../../common/main/resources/img/header/header-logo_s.svg') no-repeat;
}
2021-08-06 10:55:26 +00:00
}
2021-08-19 20:09:18 +00:00
.btn-text-default {
2021-10-29 17:15:38 +00:00
width: auto;
2021-08-06 10:55:26 +00:00
&.colored {
padding: 0 16px;
height: 28px;
2021-11-17 21:35:58 +00:00
background-color: @background-accent-button-ie;
background-color: @background-accent-button;
2021-08-19 20:09:18 +00:00
border: 1px solid transparent;
2021-08-06 10:55:26 +00:00
border-radius: 3px;
2021-11-17 21:35:58 +00:00
color: @text-contrast-background-ie !important;
color: @text-contrast-background !important;
2021-08-06 10:55:26 +00:00
font-weight: 700;
2021-08-19 20:09:18 +00:00
&:hover:not(.disabled),
.over:not(.disabled) {
2021-11-17 21:35:58 +00:00
background-color: @highlight-accent-button-hover-ie !important;
background-color: @highlight-accent-button-hover !important;
2021-08-06 10:55:26 +00:00
}
2021-08-19 20:09:18 +00:00
&:active:not(.disabled),
&.active:not(.disabled) {
2021-11-17 21:35:58 +00:00
background-color: @highlight-accent-button-pressed-ie !important;
background-color: @highlight-accent-button-pressed !important;
2021-08-06 10:55:26 +00:00
}
}
}
// Overlay control
// -------------------------
.overlay-controls {
position: absolute;
bottom: 55px;
z-index: 10;
left: 50%;
ul {
padding: 0;
list-style-type: none;
margin: 0 auto;
li {
display: inline-block;
&:first-child {
margin-right: 5px;
}
&:last-child {
margin-left: 5px;
}
}
}
.overlay {
width: 32px;
height: 32px;
display: inline-block;
cursor: pointer;
background-color: black;
border: 5px solid black;
border-radius: 50%;
outline: none;
opacity: 0.3;
background-origin: content-box;
padding: 1px 0 0 1px;
2021-09-23 21:04:23 +00:00
.box-shadow(0 0 0 2px rgba(255,255,255,0.3));
2021-08-06 10:55:26 +00:00
&:hover {
opacity: .6;
}
&.active, &:active {
opacity: .8;
}
}
}
// Error mask
// -------------------------
.errormask {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
overflow: hidden;
border: none;
background-color: #f4f4f4;
z-index: 30002;
.error-body {
position: relative;
top: 40%;
width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #FFFFFF;
border: 1px solid #C0C0C0;
.title {
font-weight: bold;
font-size: 1.6em;
padding-bottom: 10px;
}
}
}
// Modals
// -------------------------
.share-buttons {
ul {
width: 244px;
//height: 25px;
list-style-type: none;
margin: 5px 0 0;
overflow: hidden;
li {
display: inline-block;
float: left;
margin: 1px 5px 0 0;
vertical-align: middle;
&.share-mail {
float: right;
padding-right: 1px;
margin: 0;
a {
min-width: 64px;
}
.glyphicon {
margin-right: 4px;
}
}
&.share-twitter {
max-width: 93px;
}
}
}
}
.size-manual {
margin-bottom: 10px;
.right {
float: right;
}
.caption {
margin-top: 2px;
margin-right: 8px;
}
input {
display: inline-block;
font-size: 1em;
padding: 0 4px;
//border-radius: 0;
margin: 0;
margin-top: -1px;
&.input-xs {
width: 50px;
}
}
}
.socnet-btn(@index) {
background-position: -@icon-socnet-size*@index 0;
&:hover {
background-position: -@icon-socnet-size*@index -@icon-socnet-size;
}
}
.svg {
background: data-uri('../../../../common/forms/resources/img/icon-social-sprite.svg');
width: 40px;
height: 40px;
background-size: @icon-socnet-size*4 @icon-socnet-size*2;
&.big-facebook:hover {
background-position: 0 -@icon-socnet-size;
}
&.big-twitter { .socnet-btn(1); }
&.big-gplus { .socnet-btn(2); }
&.big-email { .socnet-btn(3); }
}
@icon-width: 20px;
@icon-height: 20px;
2021-09-24 22:33:02 +00:00
.theme-dark {
@neg-value: -@icon-height;
--icon-normal-top: @neg-value;
}
@icon-normal-top: var(--icon-normal-top, 0);
2021-08-06 10:55:26 +00:00
.svg-icon {
background: data-uri('../../../../common/forms/resources/img/icon-menu-sprite.svg') no-repeat;
2022-06-08 21:07:07 +00:00
background-size: @icon-width*29 @icon-height*2;
2021-08-06 10:55:26 +00:00
&.download {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.share {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*2 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*2 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.embed {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*3 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*3 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.fullscr {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*4 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*4 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
2021-12-15 13:43:21 +00:00
&.zoom-in {
2021-12-17 15:39:03 +00:00
background-position: -@icon-width*5 0;
2021-12-15 13:43:21 +00:00
background-position: -@icon-width*5 @icon-normal-top;
}
&.zoom-out {
2021-12-17 15:39:03 +00:00
background-position: -@icon-width*6 0;
2021-12-15 13:43:21 +00:00
background-position: -@icon-width*6 @icon-normal-top;
}
2021-08-06 10:55:26 +00:00
&.zoom-up {
background-position: -@icon-width*5 -@icon-height;
}
&.zoom-down {
background-position: -@icon-width*6 -@icon-height;
}
&.slide-prev {
background-position: -@icon-width*7 -@icon-height;
}
&.slide-next {
background-position: -@icon-width*8 -@icon-height;
}
&.play {
background-position: -@icon-width*9 -@icon-height;
}
&.pause {
background-position: -@icon-width*10 -@icon-height;
}
&.print {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*11 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*11 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.arrow-up {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*17 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*17 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.arrow-down {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*16 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*16 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.clear-style {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*12 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*12 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.go-to-location {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*15 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*15 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
&.more-vertical {
2021-09-27 17:02:29 +00:00
background-position: -@icon-width*14 0;
2021-09-24 22:33:02 +00:00
background-position: -@icon-width*14 @icon-normal-top;
2021-08-06 10:55:26 +00:00
}
2021-11-11 08:38:34 +00:00
&.cut {
background-position: -@icon-width*19 0;
background-position: -@icon-width*19 @icon-normal-top;
}
&.copy {
background-position: -@icon-width*20 0;
background-position: -@icon-width*20 @icon-normal-top;
}
&.paste {
background-position: -@icon-width*21 0;
background-position: -@icon-width*21 @icon-normal-top;
}
2021-11-29 16:22:34 +00:00
&.undo {
background-position: -@icon-width*22 0;
background-position: -@icon-width*22 @icon-normal-top;
}
&.redo {
background-position: -@icon-width*23 0;
background-position: -@icon-width*23 @icon-normal-top;
}
2022-05-19 21:01:09 +00:00
&.search {
background-position: -@icon-width*24 0;
background-position: -@icon-width*24 @icon-normal-top;
}
&.btn-sheet-view {
background-position: -@icon-width*25 0;
background-position: -@icon-width*25 @icon-normal-top;
}
&.hide-password {
background-position: -@icon-width*26 0;
background-position: -@icon-width*26 @icon-normal-top;
}
2022-06-08 21:07:07 +00:00
&.search-close {
background-position: -@icon-width*18 0;
}
&.search {
background-position: -@icon-width*24 0;
}
&.search-arrow-up {
background-position: -@icon-width*27 0;
}
&.search-arrow-down {
background-position: -@icon-width*28 0;
}
2021-08-06 10:55:26 +00:00
}
2021-08-18 18:29:47 +00:00
.btn {
&.active, &:active {
&:not(:disabled):not(.disabled) {
.icon {
@btn-active-icon-offset: -20px;
background-position-y: @btn-active-icon-offset;
background-position-y: var(--button-small-active-icon-offset-x, 0);
}
}
}
}
2021-08-06 10:55:26 +00:00
.mi-icon {
width: @icon-width;
height: @icon-height;
float: left;
margin: -3px 4px 0 -24px;
}
2021-08-20 08:22:17 +00:00
.modal-dlg {
textarea {
.user-select(text);
width: 100%;
resize: none;
margin-bottom: 5px;
border: @scaled-one-px-value-ie solid @border-regular-control-ie;
border: @scaled-one-px-value solid @border-regular-control;
height: 100%;
&.disabled {
opacity: @component-disabled-opacity;
cursor: default !important;
2021-08-06 10:55:26 +00:00
}
}
2021-08-20 08:22:17 +00:00
label {
.font-size-normal();
font-weight: normal;
2021-08-06 10:55:26 +00:00
2021-08-20 08:22:17 +00:00
&.input-label{
margin-bottom: 0;
vertical-align: middle;
}
2021-08-06 10:55:26 +00:00
2021-08-20 08:22:17 +00:00
&.header {
font-weight: bold;
2021-08-06 10:55:26 +00:00
}
}
2021-08-20 20:30:10 +00:00
.form-control[readonly] {
cursor: auto;
}
.share-buttons {
height: 40px;
text-align: center;
span {
display: inline-block;
margin: 0 7px;
cursor: pointer;
}
}
}
2021-08-06 10:55:26 +00:00
.masked {
background-color: transparent;
border-color: transparent;
2021-09-23 21:04:23 +00:00
.box-shadow(none);
2021-08-06 10:55:26 +00:00
}
#pages {
cursor: pointer;
display: inline-block;
line-height: 22px;
padding: 0 0 0 3px;
2021-12-06 16:51:21 +00:00
vertical-align: middle;
2021-08-06 10:55:26 +00:00
}
#page-number {
2021-08-18 21:52:04 +00:00
.masked {
2021-08-06 10:55:26 +00:00
cursor: pointer;
2021-12-06 16:51:21 +00:00
line-height: 22px;
2021-08-06 10:55:26 +00:00
}
}
.submit-tooltip {
position: absolute;
z-index: 1000;
top: 58px;
right: 15px;
padding: 7px 15px;
border-radius: 5px;
2021-09-23 21:04:23 +00:00
background-color: @background-notification-popover-ie;
2021-08-19 20:09:18 +00:00
background-color: @background-notification-popover;
2021-09-23 21:04:23 +00:00
.box-shadow(0 4px 15px -2px rgba(0, 0, 0, 0.5));
2021-08-06 10:55:26 +00:00
font-size: 11px;
}
2021-12-15 13:43:21 +00:00
.menu-zoom {
line-height: @line-height-base;
.title {
padding: 5px 5px 5px 28px;
float: left;
font-weight: normal;
font-size: 11px;
margin: 0px;
text-overflow: ellipsis;
}
.zoom {
padding: 5px 3px;
float: right;
min-width: 40px;
text-align: center;
font-weight: normal;
font-size: 11px;
padding-bottom: 0px;
}
.mi-icon {
margin: 0;
}
}
2021-08-07 08:44:58 +00:00
.font-size-small {
.fontsize(@font-size-small);
}
.font-size-normal {
.fontsize(@font-size-base);
}
.font-size-large {
.fontsize(@font-size-large);
2022-06-07 14:57:01 +00:00
}
.search-bar {
z-index: 50;
2021-08-06 10:55:26 +00:00
}