2017-01-25 16:13:28 +03:00
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
* @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
|
|
|
|
* @copyright Copyright (c) 2016, Joas Schilling <coding@schilljs.com>
|
|
|
|
* @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
|
|
|
|
* @copyright Copyright (c) 2016, jowi <sjw@gmx.ch>
|
|
|
|
* @copyright Copyright (c) 2015, Joas Schilling <nickvergessen@owncloud.com>
|
|
|
|
* @copyright Copyright (c) 2015, Hendrik Leppelsack <hendrik@leppelsack.de>
|
2017-03-06 20:07:07 +03:00
|
|
|
* @copyright Copyright (c) 2014-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
|
2017-01-25 16:13:28 +03:00
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Specifically override browser styles */
|
2016-12-22 13:17:14 +03:00
|
|
|
input, textarea, select, button {
|
|
|
|
font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
|
|
|
|
}
|
|
|
|
.select2-container-multi .select2-choices .select2-search-field input, .select2-search input, .ui-widget {
|
|
|
|
font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif !important;
|
|
|
|
}
|
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Simple selector to allow easy overriding */
|
|
|
|
select,
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
textarea {
|
2016-12-22 13:17:14 +03:00
|
|
|
width: 130px;
|
2017-01-21 07:34:32 +03:00
|
|
|
min-height: 32px;
|
|
|
|
box-sizing: border-box;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Default global values */
|
|
|
|
select,
|
|
|
|
button, .button,
|
|
|
|
input:not([type='range']),
|
|
|
|
textarea,
|
|
|
|
#quota, .pager li a {
|
2016-12-22 13:17:14 +03:00
|
|
|
margin: 3px 3px 3px 0;
|
2017-01-21 07:34:32 +03:00
|
|
|
padding: 7px 6px;
|
2016-12-22 13:17:14 +03:00
|
|
|
font-size: 13px;
|
2017-02-19 21:49:19 +03:00
|
|
|
background-color: $color-main-background;
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
|
|
|
border: 1px solid nc-lighten($color-main-text, 86%);
|
2016-12-22 13:17:14 +03:00
|
|
|
outline: none;
|
|
|
|
border-radius: 3px;
|
2017-01-21 21:25:48 +03:00
|
|
|
&:not(:disabled):not(.primary) {
|
2017-01-22 19:25:02 +03:00
|
|
|
/* no border on quota */
|
2017-01-21 21:25:48 +03:00
|
|
|
&:not(#quota):hover,
|
2017-01-21 21:33:43 +03:00
|
|
|
&:focus,
|
|
|
|
&.active {
|
2017-01-22 18:37:23 +03:00
|
|
|
/* active class used for multiselect */
|
2017-08-11 16:11:47 +03:00
|
|
|
border-color: $color-primary-element;
|
2017-01-21 07:34:32 +03:00
|
|
|
outline: none;
|
|
|
|
}
|
2017-01-21 21:25:48 +03:00
|
|
|
&:active {
|
2017-01-21 07:34:32 +03:00
|
|
|
outline: none;
|
2017-02-19 21:49:19 +03:00
|
|
|
background-color: $color-main-background;
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 21:25:48 +03:00
|
|
|
&:disabled {
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-darken($color-main-background, 8%);
|
2017-02-19 21:49:19 +03:00
|
|
|
color: rgba($color-main-text, 0.4);
|
2017-01-21 07:34:32 +03:00
|
|
|
cursor: default;
|
2017-01-22 18:37:23 +03:00
|
|
|
opacity: 0.5;
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
/* Primary action button, use sparingly */
|
|
|
|
&.primary {
|
2017-08-11 16:11:47 +03:00
|
|
|
background-color: $color-primary-element;
|
|
|
|
border: 1px solid $color-primary-text;
|
2017-02-19 21:49:19 +03:00
|
|
|
color: $color-primary-text;
|
2017-01-21 07:34:32 +03:00
|
|
|
cursor: pointer;
|
2017-01-21 21:25:48 +03:00
|
|
|
&:not(:disabled) {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-08-11 16:11:47 +03:00
|
|
|
background-color: rgba($color-primary-element, .85);
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
2017-01-21 21:25:48 +03:00
|
|
|
&:active {
|
2017-08-11 16:11:47 +03:00
|
|
|
background-color: rgba($color-primary-element, .7);
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
}
|
2017-01-21 21:25:48 +03:00
|
|
|
&:disabled {
|
2017-08-11 16:11:47 +03:00
|
|
|
background-color: rgba($color-primary-element, .7);
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 73%);
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Specific override */
|
2016-12-22 13:17:14 +03:00
|
|
|
input {
|
2017-01-21 07:34:32 +03:00
|
|
|
&:not([type='radio']):not([type='checkbox']):not([type='range']):not([type='submit']):not([type='button']):not([type='reset']):not([type='color']):not([type='file']):not([type='image']) {
|
2016-12-22 13:17:14 +03:00
|
|
|
-webkit-appearance: textfield;
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&[type='radio'],
|
|
|
|
&[type='checkbox'],
|
|
|
|
&[type='file'],
|
|
|
|
&[type='image'] {
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Color input doesn't respect the initial height
|
|
|
|
so we need to set a custom one */
|
|
|
|
&[type='color'] {
|
|
|
|
margin: 3px;
|
|
|
|
padding: 0 2px;
|
|
|
|
min-height: 30px;
|
|
|
|
width: 40px;
|
|
|
|
cursor: pointer;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&[type='hidden'] {
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&[type='time'] {
|
|
|
|
width: initial;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 'Click' inputs */
|
|
|
|
select,
|
2017-01-22 19:25:02 +03:00
|
|
|
button, .button,
|
2017-01-21 07:34:32 +03:00
|
|
|
input[type='button'],
|
|
|
|
input[type='submit'],
|
|
|
|
input[type='reset'] {
|
|
|
|
padding: 6px 12px;
|
|
|
|
width: auto;
|
|
|
|
min-height: 34px;
|
|
|
|
cursor: pointer;
|
|
|
|
box-sizing: border-box;
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-darken($color-main-background, 3%);
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Buttons */
|
2017-01-22 19:25:02 +03:00
|
|
|
button, .button,
|
2017-01-21 07:34:32 +03:00
|
|
|
input[type='button'],
|
|
|
|
input[type='submit'],
|
|
|
|
input[type='reset'] {
|
|
|
|
font-weight: bold;
|
|
|
|
/* Get rid of the ugly firefox dotted line */
|
|
|
|
&::-moz-focus-inner {
|
|
|
|
border: 0;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
2017-01-22 19:25:02 +03:00
|
|
|
button, .button {
|
2017-01-23 11:17:07 +03:00
|
|
|
> span {
|
2017-01-22 19:25:02 +03:00
|
|
|
/* icon position inside buttons */
|
|
|
|
&[class^='icon-'],
|
|
|
|
&[class*=' icon-'] {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: text-bottom;
|
2017-01-22 19:30:38 +03:00
|
|
|
opacity: 0.5;
|
2017-01-22 19:25:02 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
textarea {
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
2017-01-21 07:34:32 +03:00
|
|
|
cursor: text;
|
|
|
|
font-family: inherit;
|
|
|
|
height: auto;
|
2017-01-21 21:25:48 +03:00
|
|
|
&:not(:disabled) {
|
|
|
|
&:active,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-03-06 00:38:59 +03:00
|
|
|
border-color: nc-lighten($color-main-text, 86%) !important;
|
2017-02-19 21:49:19 +03:00
|
|
|
background-color: $color-main-background !important;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Override the ugly select arrow */
|
|
|
|
select {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
background: url('../img/actions/triangle-s.svg') no-repeat right 4px center;
|
|
|
|
background-color: inherit;
|
|
|
|
outline: 0;
|
|
|
|
padding-right: 24px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Various Fixes */
|
|
|
|
button img,
|
|
|
|
.button img {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
#quota {
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
select,
|
|
|
|
.button.multiselect {
|
|
|
|
font-weight: 400;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Radio & Checkboxes */
|
2016-12-22 13:17:14 +03:00
|
|
|
input {
|
2017-01-21 07:34:32 +03:00
|
|
|
&[type='checkbox'],
|
|
|
|
&[type='radio'] {
|
|
|
|
&.radio,
|
2016-12-22 13:17:14 +03:00
|
|
|
&.checkbox {
|
|
|
|
position: absolute;
|
|
|
|
left: -10000px;
|
|
|
|
top: auto;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
overflow: hidden;
|
2017-01-21 07:34:32 +03:00
|
|
|
+ label {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
&:disabled + label,
|
|
|
|
&:disabled + label:before {
|
|
|
|
cursor: default;
|
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
+ label:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
2017-01-21 07:34:32 +03:00
|
|
|
height: 12px;
|
|
|
|
width: 12px;
|
2016-12-22 13:17:14 +03:00
|
|
|
vertical-align: middle;
|
2017-01-21 07:34:32 +03:00
|
|
|
border-radius: 50%;
|
2017-04-26 17:47:04 +03:00
|
|
|
margin: 3px;
|
|
|
|
margin-top: 1px;
|
2017-03-06 00:38:59 +03:00
|
|
|
border: 1px solid nc-lighten($color-main-text, 53%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&:not(:disabled):not(:checked) + label:hover:before,
|
|
|
|
&:focus + label:before {
|
2017-08-11 16:11:47 +03:00
|
|
|
border-color: $color-primary-element;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&:checked + label:before,
|
|
|
|
&.checkbox:indeterminate + label:before {
|
|
|
|
/* ^ :indeterminate have a strange behavior on radio,
|
|
|
|
so we respecified the checkbox class again to be safe */
|
2017-02-19 21:49:19 +03:00
|
|
|
box-shadow: inset 0px 0px 0px 2px $color-main-background;
|
2017-08-11 16:11:47 +03:00
|
|
|
background-color: $color-primary-element;
|
|
|
|
border-color: $color-primary-element;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
&:disabled + label:before {
|
2017-03-06 00:38:59 +03:00
|
|
|
border: 1px solid nc-lighten($color-main-text, 53%);
|
|
|
|
background-color: nc-lighten($color-main-text, 73%) !important; /* override other status */
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
&:checked:disabled + label:before {
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-lighten($color-main-text, 73%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&.checkbox {
|
2016-12-22 13:17:14 +03:00
|
|
|
+ label:before {
|
2017-01-21 07:34:32 +03:00
|
|
|
border-radius: 1px;
|
2017-01-21 21:05:20 +03:00
|
|
|
height: 10px;
|
|
|
|
width: 10px;
|
2017-01-21 07:34:32 +03:00
|
|
|
box-shadow: none !important;
|
2017-01-21 21:05:20 +03:00
|
|
|
background-position: center;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 21:05:20 +03:00
|
|
|
&:checked + label:before {
|
|
|
|
background-image: url('../img/actions/checkbox-mark.svg');
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 21:05:20 +03:00
|
|
|
&:indeterminate + label:before {
|
|
|
|
background-image: url('../img/actions/checkbox-mixed.svg');
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&.radio--white,
|
|
|
|
&.checkbox--white {
|
2016-12-22 13:17:14 +03:00
|
|
|
+ label:before {
|
2017-03-06 00:38:59 +03:00
|
|
|
border-color: nc-lighten($color-main-text, 86%);
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
&:not(:disabled):not(:checked) + label:hover:before,
|
|
|
|
&:focus + label:before {
|
2017-02-19 21:49:19 +03:00
|
|
|
border-color: $color-main-background;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-31 21:29:30 +03:00
|
|
|
&:checked + label:before {
|
2017-02-19 21:49:19 +03:00
|
|
|
box-shadow: inset 0px 0px 0px 2px $color-main-text;
|
2017-09-05 19:50:33 +03:00
|
|
|
background-color: $color-border;
|
|
|
|
border-color: $color-border
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
&:disabled + label:before {
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-lighten($color-main-text, 33%) !important; /* override other status */
|
2017-02-19 21:49:19 +03:00
|
|
|
border-color: rgba($color-main-text, 0.4) !important; /* override other status */
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
&:checked:disabled + label:before {
|
2017-02-19 21:49:19 +03:00
|
|
|
box-shadow: inset 0px 0px 0px 2px $color-main-text;
|
2017-03-06 00:38:59 +03:00
|
|
|
border-color: nc-lighten($color-main-text, 33%);
|
|
|
|
background-color: nc-lighten($color-main-text, 33%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&.checkbox--white {
|
2017-01-31 21:29:30 +03:00
|
|
|
&:checked + label:before,
|
|
|
|
&:indeterminate + label:before {
|
|
|
|
background-color: transparent !important; /* Override default checked */
|
2017-02-19 21:49:19 +03:00
|
|
|
border-color: $color-main-background !important; /* Override default checked */
|
2017-01-22 18:30:13 +03:00
|
|
|
background-image: url('../img/actions/checkbox-mark-white.svg');
|
2017-01-21 21:05:20 +03:00
|
|
|
}
|
|
|
|
&:indeterminate + label:before {
|
2017-01-22 18:30:13 +03:00
|
|
|
background-image: url('../img/actions/checkbox-mixed-white.svg');
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&:checked:disabled + label:after {
|
2017-03-06 00:38:59 +03:00
|
|
|
border-color: nc-lighten($color-main-text, 73%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&:indeterminate:disabled + label:after {
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-lighten($color-main-text, 73%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-03-06 20:07:07 +03:00
|
|
|
#app-settings-content {
|
|
|
|
input {
|
|
|
|
&[type='checkbox'],
|
|
|
|
&[type='radio'] {
|
|
|
|
&.radio,
|
|
|
|
&.checkbox {
|
|
|
|
+ label {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Select2 overriding. Merged to core with vendor stylesheet */
|
|
|
|
.select2-drop {
|
2016-12-22 13:17:14 +03:00
|
|
|
margin-top: -2px;
|
2017-09-05 19:50:33 +03:00
|
|
|
background-color: $color-main-background;
|
2016-12-22 13:17:14 +03:00
|
|
|
&.select2-drop-active {
|
2017-03-06 00:38:59 +03:00
|
|
|
border-color: nc-lighten($color-main-text, 86%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
.avatar {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 8px;
|
|
|
|
vertical-align: middle;
|
|
|
|
img {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.select2-search input {
|
|
|
|
min-height: auto;
|
|
|
|
background: url('../img/actions/search.svg') no-repeat right center !important;
|
|
|
|
background-origin: content-box !important;
|
|
|
|
}
|
|
|
|
.select2-results {
|
|
|
|
max-height: 250px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
.select2-result-label {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
span {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
.select2-result,
|
|
|
|
.select2-no-results,
|
|
|
|
.select2-searching {
|
2016-12-22 13:17:14 +03:00
|
|
|
position: relative;
|
|
|
|
display: list-item;
|
|
|
|
padding: 12px;
|
2017-09-05 19:50:33 +03:00
|
|
|
background-color: transparent;
|
2016-12-22 13:17:14 +03:00
|
|
|
cursor: pointer;
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
.select2-result {
|
|
|
|
&.select2-selected {
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-darken($color-main-background, 3%);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-09-05 19:50:33 +03:00
|
|
|
}
|
|
|
|
.select2-highlighted {
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-darken($color-main-background, 3%);
|
2017-02-19 21:49:19 +03:00
|
|
|
color: $color-main-text;
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
.select2-chosen,
|
|
|
|
#select2-drop {
|
|
|
|
.avatar,
|
|
|
|
.avatar img {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
.select2-container-multi {
|
2017-01-21 07:34:32 +03:00
|
|
|
.select2-choices,
|
|
|
|
&.select2-container-active .select2-choices {
|
2016-12-22 13:17:14 +03:00
|
|
|
box-shadow: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2017-02-19 21:49:19 +03:00
|
|
|
background: $color-main-background;
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
2016-12-22 13:17:14 +03:00
|
|
|
box-sizing: content-box;
|
|
|
|
border-radius: 3px;
|
2017-03-06 00:38:59 +03:00
|
|
|
border: 1px solid nc-lighten($color-main-text, 86%);
|
2016-12-22 13:17:14 +03:00
|
|
|
margin: 0;
|
|
|
|
padding: 2px 0;
|
|
|
|
min-height: auto;
|
2017-01-21 07:34:32 +03:00
|
|
|
.select2-search-choice {
|
|
|
|
line-height: 20px;
|
|
|
|
padding-left: 5px;
|
|
|
|
&.select2-search-choice-focus,
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
& {
|
|
|
|
background-image: none;
|
2017-02-19 21:49:19 +03:00
|
|
|
background-color: $color-main-background;
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
|
|
|
border: 1px solid nc-lighten($color-main-text, 86%);
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
.select2-search-choice-close {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
.select2-search-field input {
|
|
|
|
line-height: 20px;
|
2017-09-06 14:28:00 +03:00
|
|
|
&.select2-active {
|
|
|
|
background: none !important;
|
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.select2-container {
|
|
|
|
margin: 3px 3px 3px 0;
|
|
|
|
&.select2-container-multi .select2-choices {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
li {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.select2-choice {
|
2017-01-21 07:34:32 +03:00
|
|
|
box-shadow: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2017-02-19 21:49:19 +03:00
|
|
|
background: $color-main-background;
|
2017-03-06 00:38:59 +03:00
|
|
|
color: nc-lighten($color-main-text, 33%);
|
2017-01-21 07:34:32 +03:00
|
|
|
box-sizing: content-box;
|
|
|
|
border-radius: 3px;
|
2017-03-06 00:38:59 +03:00
|
|
|
border: 1px solid nc-lighten($color-main-text, 86%);
|
2017-01-21 07:34:32 +03:00
|
|
|
margin: 0;
|
|
|
|
padding: 2px 0;
|
|
|
|
padding-left: 6px;
|
|
|
|
min-height: auto;
|
|
|
|
.select2-search-choice {
|
|
|
|
line-height: 20px;
|
|
|
|
padding-left: 5px;
|
|
|
|
background-image: none;
|
2017-03-06 00:38:59 +03:00
|
|
|
background-color: nc-darken($color-main-background, 3%);
|
|
|
|
border-color: nc-darken($color-main-background, 3%);
|
2017-01-21 07:34:32 +03:00
|
|
|
.select2-search-choice-close {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&.select2-search-choice-focus,
|
|
|
|
&:hover {
|
2017-09-05 19:50:33 +03:00
|
|
|
background-color: $color-border;
|
|
|
|
border-color: $color-border;
|
2017-01-21 07:34:32 +03:00
|
|
|
}
|
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
.select2-arrow {
|
|
|
|
background: none;
|
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
b {
|
|
|
|
background: url('../img/actions/triangle-s.svg') no-repeat center !important;
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
&:hover .select2-arrow b,
|
|
|
|
&:focus .select2-arrow b,
|
|
|
|
&:active .select2-arrow b {
|
2016-12-22 13:17:14 +03:00
|
|
|
opacity: .7;
|
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
.select2-search-field input {
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-21 07:34:32 +03:00
|
|
|
/* Animation */
|
2016-12-22 13:17:14 +03:00
|
|
|
@keyframes shake {
|
2017-01-21 07:34:32 +03:00
|
|
|
10%,
|
|
|
|
90% {
|
|
|
|
transform: translate(-1px);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
20%,
|
|
|
|
80% {
|
|
|
|
transform: translate(2px);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
30%,
|
|
|
|
50%,
|
|
|
|
70% {
|
|
|
|
transform: translate(-4px);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
2017-01-21 07:34:32 +03:00
|
|
|
40%,
|
2016-12-22 13:17:14 +03:00
|
|
|
60% {
|
2017-01-21 07:34:32 +03:00
|
|
|
transform: translate(4px);
|
2016-12-22 13:17:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.shake {
|
|
|
|
animation-name: shake;
|
2017-01-21 07:34:32 +03:00
|
|
|
animation-duration: .7s;
|
2016-12-22 13:17:14 +03:00
|
|
|
animation-timing-function: ease-out;
|
|
|
|
}
|