2015-04-09 15:46:29 +02:00
|
|
|
/**
|
2017-01-11 16:24:33 +01:00
|
|
|
* Copyright JS Foundation and other contributors, http://js.foundation
|
2015-04-09 15:46:29 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
**/
|
|
|
|
|
|
|
|
@mixin disable-selection {
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-khtml-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2016-08-04 17:49:36 +02:00
|
|
|
@mixin enable-selection {
|
|
|
|
-webkit-user-select: auto;
|
|
|
|
-khtml-user-select: auto;
|
|
|
|
-moz-user-select: auto;
|
|
|
|
-ms-user-select: auto;
|
|
|
|
user-select: auto;
|
|
|
|
}
|
|
|
|
|
2015-04-09 15:46:29 +02:00
|
|
|
@mixin component-border {
|
2022-06-18 22:05:25 +02:00
|
|
|
border: 1px solid var(--red-ui-primary-border-color);
|
2015-07-12 00:43:45 +02:00
|
|
|
box-sizing: border-box;
|
2015-07-13 16:08:17 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-04-23 15:23:17 +02:00
|
|
|
@mixin reset-a-style {
|
2022-06-18 22:05:25 +02:00
|
|
|
color: var(--red-ui-workspace-button-color) !important;
|
|
|
|
background: var(--red-ui-workspace-button-background);
|
2015-07-13 16:08:17 +02:00
|
|
|
text-decoration: none;
|
2016-09-19 14:54:23 +02:00
|
|
|
|
2017-09-26 23:51:08 +02:00
|
|
|
&.disabled, &:disabled {
|
2015-07-13 16:08:17 +02:00
|
|
|
cursor: default;
|
2022-06-18 22:05:25 +02:00
|
|
|
color: var(--red-ui-workspace-button-color-disabled) !important;
|
2015-07-13 16:08:17 +02:00
|
|
|
}
|
2016-08-04 17:49:36 +02:00
|
|
|
&:hover, &:focus {
|
2015-07-14 00:21:03 +02:00
|
|
|
text-decoration: none;
|
2016-08-04 17:49:36 +02:00
|
|
|
}
|
2022-06-18 22:05:25 +02:00
|
|
|
&:not(.disabled):not(:disabled):hover {
|
|
|
|
color: var(--red-ui-workspace-button-color-hover) !important;
|
|
|
|
background: var(--red-ui-workspace-button-background-hover);
|
2015-07-13 16:08:17 +02:00
|
|
|
}
|
2017-09-26 23:51:08 +02:00
|
|
|
&:not(.disabled):not(:disabled):focus {
|
2022-06-18 22:05:25 +02:00
|
|
|
color: var(--red-ui-workspace-button-color-focus) !important;
|
2015-07-13 16:08:17 +02:00
|
|
|
}
|
2017-09-26 23:51:08 +02:00
|
|
|
&:not(.disabled):not(:disabled):active {
|
2022-06-18 22:05:25 +02:00
|
|
|
color: var(--red-ui-workspace-button-color-active) !important;
|
|
|
|
background: var(--red-ui-workspace-button-background-active);
|
2015-09-23 23:49:48 +02:00
|
|
|
text-decoration: none;
|
2015-07-13 16:08:17 +02:00
|
|
|
}
|
2019-04-23 15:23:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin workspace-button {
|
|
|
|
@include disable-selection;
|
|
|
|
@include reset-a-style;
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: inline-block;
|
2022-06-18 22:05:25 +02:00
|
|
|
border: 1px solid var(--red-ui-form-input-border-color);
|
2019-04-23 15:23:17 +02:00
|
|
|
text-align: center;
|
|
|
|
margin:0;
|
|
|
|
cursor:pointer;
|
|
|
|
|
2019-05-15 14:54:29 +02:00
|
|
|
&.selected:not(.disabled):not(:disabled) {
|
2022-06-18 22:05:25 +02:00
|
|
|
color: var(--red-ui-workspace-button-color-selected) !important;
|
|
|
|
background: var(--red-ui-workspace-button-background-active);
|
2019-05-15 14:54:29 +02:00
|
|
|
}
|
2016-01-13 00:55:18 +01:00
|
|
|
.button-group &:not(:first-child) {
|
|
|
|
border-left: none;
|
2016-09-19 14:54:23 +02:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
.button-group &:not(:last-child) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2016-01-13 00:55:18 +01:00
|
|
|
}
|
2017-04-28 21:49:01 +02:00
|
|
|
.button-group-vertical & {
|
|
|
|
display: block;
|
|
|
|
min-width: 22px;
|
|
|
|
}
|
|
|
|
.button-group-vertical &:not(:first-child) {
|
|
|
|
border-top: none;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
.button-group-vertical &:not(:last-child) {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
2021-07-20 12:02:24 +02:00
|
|
|
.button-group &:focus {
|
|
|
|
position: relative;
|
|
|
|
}
|
2016-01-31 23:27:14 +01:00
|
|
|
|
2017-12-20 15:37:34 +01:00
|
|
|
.button-row &:not(:first-child) {
|
|
|
|
margin-left: 15px;
|
|
|
|
}
|
|
|
|
|
2016-01-31 23:27:14 +01:00
|
|
|
&:focus {
|
2022-06-18 22:05:25 +02:00
|
|
|
outline: 1px solid var(--red-ui-workspace-button-color-focus-outline);
|
2021-07-20 12:02:24 +02:00
|
|
|
outline-offset: 1px;
|
2016-01-31 23:27:14 +01:00
|
|
|
}
|
2017-10-07 01:18:20 +02:00
|
|
|
|
|
|
|
&.primary {
|
2022-06-18 22:05:25 +02:00
|
|
|
border-color: var(--red-ui-workspace-button-background-primary);
|
|
|
|
color: var(--red-ui-workspace-button-color-primary) !important;
|
|
|
|
background: var(--red-ui-workspace-button-background-primary);
|
2017-10-07 01:18:20 +02:00
|
|
|
&.disabled, &.ui-state-disabled {
|
|
|
|
background: none;
|
2022-06-18 22:05:25 +02:00
|
|
|
color: var(--red-ui-workspace-button-color) !important;
|
|
|
|
border-color: var(--red-ui-form-input-border-color);
|
2017-10-07 01:18:20 +02:00
|
|
|
}
|
|
|
|
&:not(.disabled):not(.ui-button-disabled):hover {
|
2022-06-18 22:05:25 +02:00
|
|
|
border-color: var(--red-ui-workspace-button-background-primary-hover);
|
|
|
|
background: var(--red-ui-workspace-button-background-primary-hover);
|
|
|
|
color: var(--red-ui-workspace-button-color-primary) !important;
|
2017-10-07 01:18:20 +02:00
|
|
|
}
|
|
|
|
}
|
2018-11-14 13:51:02 +01:00
|
|
|
&.secondary {
|
|
|
|
background: none;
|
|
|
|
&:not(:hover) {
|
2019-05-15 14:54:29 +02:00
|
|
|
border-color: transparent;
|
2018-11-14 13:51:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2017-10-07 01:18:20 +02:00
|
|
|
|
2015-04-09 15:46:29 +02:00
|
|
|
}
|
2017-04-28 21:49:01 +02:00
|
|
|
.button-group-vertical {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2016-10-25 22:15:06 +02:00
|
|
|
.button-group:not(:last-child) {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-02-18 11:28:22 +01:00
|
|
|
@mixin workspace-button-toggle {
|
|
|
|
@include workspace-button;
|
2018-10-07 15:24:32 +02:00
|
|
|
&:not(.single) {
|
|
|
|
margin-bottom: 1px;
|
|
|
|
&.selected:not(.disabled):not(:disabled) {
|
|
|
|
border-bottom-width: 2px;
|
2022-06-18 22:05:25 +02:00
|
|
|
border-bottom-color: var(--red-ui-form-input-border-selected-color);
|
2018-10-07 15:24:32 +02:00
|
|
|
margin-bottom: 0;
|
2018-06-15 14:24:52 +02:00
|
|
|
cursor: default;
|
|
|
|
}
|
2019-05-21 16:25:38 +02:00
|
|
|
&:not(.selected) {
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
2016-02-18 11:28:22 +01:00
|
|
|
}
|
|
|
|
}
|
2017-01-30 00:01:31 +01:00
|
|
|
@mixin editor-button {
|
|
|
|
@include workspace-button;
|
|
|
|
font-size: 14px;
|
|
|
|
padding: 6px 14px;
|
|
|
|
margin-right: 8px;
|
|
|
|
&:not(.disabled):hover {
|
2022-06-18 22:05:25 +02:00
|
|
|
//color: var(--red-ui-workspace-button-color);
|
2017-01-30 00:01:31 +01:00
|
|
|
}
|
|
|
|
&.disabled {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
&.disabled:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
&.leftButton {
|
|
|
|
float: left;
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
|
|
|
&:not(.leftButton):not(:last-child) {
|
|
|
|
margin-right: 16px;
|
|
|
|
}
|
|
|
|
&.ui-state-disabled {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2016-01-13 00:55:18 +01:00
|
|
|
|
2015-07-14 16:59:56 +02:00
|
|
|
@mixin component-footer {
|
2022-06-18 22:05:25 +02:00
|
|
|
border-top: 1px solid var(--red-ui-primary-border-color);
|
|
|
|
background: var(--red-ui-primary-background);
|
2015-07-14 16:59:56 +02:00
|
|
|
text-align: right;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 25px;
|
2019-03-26 23:22:13 +01:00
|
|
|
line-height: 25px;
|
2019-06-14 23:12:47 +02:00
|
|
|
padding: 0 6px;
|
2018-06-09 00:32:17 +02:00
|
|
|
user-select: none;
|
2016-10-25 22:15:06 +02:00
|
|
|
|
|
|
|
.button-group:not(:last-child) {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
2015-07-14 16:59:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin component-footer-button {
|
|
|
|
@include workspace-button;
|
2019-03-26 23:22:13 +01:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
|
|
|
padding: 0;
|
2015-09-23 23:49:48 +02:00
|
|
|
&.text-button {
|
|
|
|
width: auto;
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
2015-07-14 16:59:56 +02:00
|
|
|
}
|
2016-10-25 22:15:06 +02:00
|
|
|
@mixin component-footer-button-toggle {
|
|
|
|
@include workspace-button-toggle;
|
2019-03-26 23:22:13 +01:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
|
|
|
height: 19px;
|
|
|
|
width: 19px;
|
|
|
|
padding: 0;
|
2016-10-25 22:15:06 +02:00
|
|
|
&.text-button {
|
|
|
|
width: auto;
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
}
|
2015-07-18 16:33:31 +02:00
|
|
|
|
|
|
|
@mixin component-shadow {
|
2022-06-18 22:05:25 +02:00
|
|
|
box-shadow: 1px 1px 4px var(--red-ui-shadow);
|
2015-07-18 16:33:31 +02:00
|
|
|
|
|
|
|
}
|
2016-11-07 22:25:09 +01:00
|
|
|
|
|
|
|
@mixin shade {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
2022-06-18 22:05:25 +02:00
|
|
|
background: var(--red-ui-shade-color);
|
2017-08-04 23:20:58 +02:00
|
|
|
z-index: 5;
|
2016-11-07 22:25:09 +01:00
|
|
|
}
|
2019-05-16 23:32:28 +02:00
|
|
|
.red-ui-shade {
|
2017-11-22 00:31:41 +01:00
|
|
|
@include shade
|
|
|
|
}
|