1
0
Fork 0
mirror of synced 2024-07-03 05:31:38 +12:00
appwrite/public/styles/forms.less

1356 lines
25 KiB
Plaintext
Raw Normal View History

2019-05-09 18:54:39 +12:00
*::placeholder {
2020-02-11 06:04:57 +13:00
color: var(--config-color-placeholder);
2019-05-09 18:54:39 +12:00
text-align: @config-start;
}
2019-08-06 16:19:16 +12:00
2019-05-09 18:54:39 +12:00
/* webkit solution */
::-webkit-input-placeholder {
text-align: @config-start;
}
2019-08-06 16:19:16 +12:00
2019-05-09 18:54:39 +12:00
/* mozilla solution */
input:-moz-placeholder {
text-align: @config-start;
}
2020-10-31 08:53:27 +13:00
form {
&.inline {
display: inline-block;
}
}
2020-02-12 10:55:00 +13:00
input, textarea {
background: var(--config-color-background-input);
}
2020-06-12 00:24:25 +12:00
input[type=file],
input[type=file]::-webkit-file-upload-button {
cursor: pointer;
}
2019-08-06 16:19:16 +12:00
button,
.button {
2019-05-09 18:54:39 +12:00
display: inline-block;
2020-02-11 06:04:57 +13:00
background: var(--config-color-focus);
2019-05-09 18:54:39 +12:00
border-radius: 26px;
border: none;
2020-02-11 06:35:13 +13:00
color: var(--config-color-background-fade);
2019-05-09 18:54:39 +12:00
height: 52px;
line-height: 52px;
padding: 0 25px;
cursor: pointer;
font-size: 16px;
box-sizing: border-box;
position: relative;
.text-one-liner;
2019-08-06 16:19:16 +12:00
&:hover,
&:focus {
2020-02-11 06:04:57 +13:00
background: var(--config-color-focus-hover);
2019-05-09 18:54:39 +12:00
}
2019-08-14 16:40:05 +12:00
&.fly {
position: fixed;
z-index: 2;
bottom: 30px;
.func-end(30px);
2020-02-28 20:37:09 +13:00
@media @phones {
.func-end(15px);
}
2019-08-14 16:40:05 +12:00
}
2019-05-09 18:54:39 +12:00
&.fill {
display: block;
width: 100%;
text-align: center;
2019-08-06 16:19:16 +12:00
padding: 0 10px !important;
2019-05-09 18:54:39 +12:00
}
&.fill-aligned {
display: block;
width: 100%;
text-align: @config-start;
2019-08-06 16:19:16 +12:00
padding: 0 20px !important;
2019-05-09 18:54:39 +12:00
}
&.icon {
2019-08-06 16:19:16 +12:00
.func-padding-end(30px) !important;
2019-05-09 18:54:39 +12:00
}
&.icon-reduce {
2019-08-06 16:19:16 +12:00
.func-padding-start(15px) !important;
2019-05-09 18:54:39 +12:00
}
&.reverse {
background: transparent;
height: 50px;
line-height: 48px;
padding: 0 23px;
2020-02-11 06:04:57 +13:00
color: var(--config-color-focus);
border: solid 2px var(--config-color-focus);
2019-05-09 18:54:39 +12:00
2019-08-06 16:19:16 +12:00
&:hover,
&:focus {
2020-02-11 06:04:57 +13:00
color: var(--config-color-focus-hover);
border-color: var(--config-color-focus-hover);
2019-05-09 18:54:39 +12:00
}
}
2020-04-30 04:56:34 +12:00
&.small {
padding: 0 15px;
height: 40px;
line-height: 36px;
font-size: 13px;
}
2020-10-31 08:53:27 +13:00
&.tick {
background: var(--config-color-fade-light);
color: var(--config-color-dark);
border-radius: 20px;
padding: 0 10px;
line-height: 30px;
height: 30px;
font-size: 12px;
display: inline-block;
&.selected {
background: var(--config-color-dark);
color: var(--config-color-fade);
}
}
2019-05-09 18:54:39 +12:00
&.round {
width: 52px;
padding: 0;
&.small {
2019-08-11 20:47:11 +12:00
font-size: 12px;
2019-05-09 18:54:39 +12:00
width: 30px;
height: 30px;
line-height: 30px;
}
}
&.white {
background: #ffffff;
2020-02-11 06:04:57 +13:00
color: var(--config-color-focus);
2019-05-09 18:54:39 +12:00
&.reverse {
color: #ffffff;
background: transparent;
border: solid 2px #ffffff;
}
}
&.trans {
2019-08-06 16:19:16 +12:00
background: transparent !important;
2019-05-09 18:54:39 +12:00
&.reverse {
2019-08-06 16:19:16 +12:00
background: transparent !important;
2019-05-09 18:54:39 +12:00
}
}
&.success {
2020-02-11 06:04:57 +13:00
background: var(--config-color-success);
2019-05-09 18:54:39 +12:00
&.reverse {
2020-02-11 06:04:57 +13:00
color: var(--config-color-success);
2019-05-09 18:54:39 +12:00
background: #ffffff;
2020-02-11 06:04:57 +13:00
border: solid 2px var(--config-color-success);
2019-05-09 18:54:39 +12:00
}
}
&.danger {
2020-02-11 06:04:57 +13:00
background: var(--config-color-danger);
2020-02-12 02:09:44 +13:00
color: #fff;
2019-05-09 18:54:39 +12:00
&.reverse {
2020-02-11 06:04:57 +13:00
color: var(--config-color-danger);
2020-02-11 06:35:13 +13:00
background: var(--config-color-background-fade);
2020-02-11 06:04:57 +13:00
border: solid 2px var(--config-color-danger);
2019-05-09 18:54:39 +12:00
}
}
2020-04-16 16:58:27 +12:00
&.dark {
background: var(--config-color-dark);
2020-04-21 20:29:09 +12:00
color: var(--config-color-background-fade);
2020-04-16 16:58:27 +12:00
&.reverse {
color: var(--config-color-dark);
background: var(--config-color-background-fade);
border: solid 2px var(--config-color-dark);
}
}
2019-08-06 16:19:16 +12:00
&.disabled,
2019-08-14 09:07:41 +12:00
&:disabled,
2019-08-06 16:19:16 +12:00
.disabled {
2020-02-12 10:55:00 +13:00
color: var(--config-color-normal);
2020-04-29 20:36:55 +12:00
background: var(--config-color-background-dark);
opacity: .6;
2019-05-09 18:54:39 +12:00
cursor: default;
}
&.link {
background: transparent;
border-radius: 0;
2020-02-11 06:04:57 +13:00
color: var(--config-color-link);
2019-05-09 18:54:39 +12:00
height: auto;
line-height: normal;
padding: 0;
2019-08-06 16:19:16 +12:00
.func-padding-end(0) !important;
2019-05-09 18:54:39 +12:00
&:focus {
box-shadow: inherit;
}
}
&.strip {
background: transparent;
height: auto;
line-height: 16px;
color: inherit;
padding: 0 5px;
}
&.facebook {
2019-08-06 16:19:16 +12:00
color: #ffffff !important;
background: #4070b4 !important;
2019-05-09 18:54:39 +12:00
}
&.twitter {
2019-08-06 16:19:16 +12:00
color: #ffffff !important;
background: #56c2ea !important;
2019-05-09 18:54:39 +12:00
}
&.linkedin {
2019-08-06 16:19:16 +12:00
color: #ffffff !important;
background: #0076b5 !important;
2019-05-09 18:54:39 +12:00
}
&.github {
2019-08-06 16:19:16 +12:00
color: #ffffff !important;
background: #7e7c7c !important;
2019-05-09 18:54:39 +12:00
}
&:focus {
outline: none;
}
}
label {
margin-bottom: 15px;
display: block;
line-height: normal;
&.inline {
display: inline;
}
2019-05-09 18:54:39 +12:00
}
2019-08-06 16:19:16 +12:00
.input,
input[type=text],
input[type=date],
input[type=datetime-local],
input[type=number],
input[type=url],
input[type=email],
input[type=file],
input[type=password],
input[type=tel],
input[type=search],
textarea,
select {
2019-05-09 18:54:39 +12:00
-webkit-appearance: none;
-moz-appearance: none;
-webkit-transform: translateZ(0px);
box-sizing: content-box;
2020-04-21 20:29:09 +12:00
color: #313131;
2019-05-09 18:54:39 +12:00
height: 40px;
line-height: 40px;
2020-02-11 06:04:57 +13:00
border: solid 1px var(--config-color-fade-light);
2019-05-09 18:54:39 +12:00
border-radius: 10px;
padding: 5px 15px;
font-size: 16px;
display: block;
width: ~"calc(100% - 32px)";
margin-bottom: 30px;
2019-08-22 22:44:55 +12:00
&[type=file] {
line-height: 0;
padding: 15px;
height: auto;
}
2019-05-09 18:54:39 +12:00
&:focus {
outline: none;
border-color: #b3d7fd;
}
&:disabled {
2020-04-30 04:56:34 +12:00
color: var(--config-color-normal);
2020-02-11 06:04:57 +13:00
background: var(--config-color-fade-super);
2020-02-21 09:44:35 +13:00
opacity: 1!important;
2019-05-09 18:54:39 +12:00
}
&.strip {
border: none;
border-radius: 0;
padding: 5px 0;
width: 100%;
background-color: transparent;
background-position: @config-end 2px top 50%;
2020-02-11 06:04:57 +13:00
border-bottom: solid 1px var(--config-color-fade-light);
color: var(--config-color-placeholder);
2019-05-09 18:54:39 +12:00
&:focus {
border-color: #b3d7fd;
}
}
2020-03-05 02:07:19 +13:00
&:-webkit-autofill::first-line {
font-weight: 300;
.text-size-normal;
}
2019-05-09 18:54:39 +12:00
}
2019-08-06 16:19:16 +12:00
input[type=email],
input[type=url] {
2019-05-09 18:54:39 +12:00
direction: ltr;
2019-08-06 16:19:16 +12:00
&::placeholder {
2019-05-09 18:54:39 +12:00
text-align: left;
direction: ltr;
2019-08-06 16:19:16 +12:00
}
;
2019-05-09 18:54:39 +12:00
}
select {
background: transparent;
-webkit-appearance: none;
2020-02-12 02:09:44 +13:00
background-image: var(--config-console-nav-switch-arrow);
2019-08-06 16:19:16 +12:00
background-position: @config-end 15px top 50%;
2019-05-09 18:54:39 +12:00
background-repeat: no-repeat;
2020-02-12 10:55:00 +13:00
background-color: var(--config-color-background-input);
2019-05-09 18:54:39 +12:00
width: ~"calc(100% - 62px)";
.text-one-liner;
.func-padding-end(45px);
&:-webkit-autofill {
background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'><path fill='%23444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>") !important;
background-position: 100% 50% !important;
2019-08-06 16:19:16 +12:00
background-repeat: no-repeat !important;
2019-05-09 18:54:39 +12:00
}
&:focus {
//border-bottom: solid 1px red;
}
}
2019-08-06 16:19:16 +12:00
input[type=search],
input[type=search].strip {
2019-05-09 18:54:39 +12:00
background: transparent;
-webkit-appearance: none;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAdZJREFUWIXt1s2LjWEYBvDfnDMzFpNIamZIFrMiJYMyFmKhZKfOwoiFr2LFn2BByG6WVrKwMcjWxgoLIlKIUk6RrzAjZWZ8LO731FlwvB+PUbjq6X0X7/VeV/d9P9fz8IdRL8Hpw3x8w0xaOz9GNxq4gJeZcGs1cRab0fU7xLfgMSYzoT3YgNXYhIO4iM+4iTWphGs4jikcFSXvhEGczr4/UFW8C2N4jXUFudvwCYeqGNgnSr6yJH8rpkWLCqMfE9hdUryFE3iC3qLEk7ij+kT34Q32FiHV8Qr7K4q3cArXihCGxd5elMjARnzBvE4f1dreV+AtnicycC/7/7K8BhaIvqXCO3zFwrwGZtCT0EAtW9N5DTSxWGR/CizNns/yEgbFEK5NZGCnaEPHE7e9Ai9wA6OJDIzistgJubFdxHB/RfFVYgCHixJruI5x5dNwDm6J47sUhkTvjpUw0Y1zeOrXR3hHjOA9zmBuTs4Arog4/yhuUZWwHPdFMh7280BZgiP4ILJ/UuymqRQmejPxphiquzgvKnMJDzOxB9glZqiRiecykbfHdawX98EhcdxO4BGu4nYm2EJDzEKPSMIdYrBnFYUq8d/EP2di1gey3cS4ErflvxffASbhcakIINaMAAAAAElFTkSuQmCC");
2020-02-12 10:55:00 +13:00
background-color: var(--config-color-background-input);
2019-08-11 07:05:36 +12:00
background-position: @config-start 15px top 50%;
2019-05-09 18:54:39 +12:00
background-repeat: no-repeat;
background-size: 20px 20px;
2019-08-11 07:05:36 +12:00
width: ~"calc(100% - 60px)";
2019-05-09 18:54:39 +12:00
.text-one-liner;
2019-08-11 07:05:36 +12:00
.func-padding-start(45px);
2019-05-09 18:54:39 +12:00
}
select[multiple] {
min-height: 75px;
2019-08-06 16:19:16 +12:00
padding: 5px 10px !important;
.func-padding-end(50px) !important;
2019-05-09 18:54:39 +12:00
option {
padding: 10px 4px;
border-bottom: solid 1px #f1f1f1;
&:last-child {
border-bottom: none;
}
}
}
textarea {
min-height: 75px;
resize: vertical;
line-height: 32px;
padding: 5px 15px;
&.tall {
min-height: 180px;
}
}
fieldset {
border: none;
margin: 0;
padding: 0;
}
.counter {
.text-size-small;
2020-04-21 07:16:14 +12:00
text-align: @config-end;
2020-04-16 16:58:27 +12:00
color: var(--config-color-fade);
2020-05-01 18:28:39 +12:00
margin-top: -20px;
margin-bottom: 20px;
2019-05-09 18:54:39 +12:00
}
.file-preview {
2020-02-12 10:55:00 +13:00
background: var(--config-color-background-input) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVQoU2NkYGAwZsAEZ9GFGIeIQix+wfQgyDODXSEAcUwGCrDSHgkAAAAASUVORK5CYII=) !important;
2019-05-09 18:54:39 +12:00
border: solid 1px #e2e2e2;
box-shadow: inset 0 0 3px #a0a0a0;
border-radius: 8px;
width: ~"calc(100% - 2px)";
max-height: 180px;
2019-08-06 16:19:16 +12:00
visibility: visible !important;
2019-05-09 18:54:39 +12:00
}
.video-preview {
padding-top: 56%;
position: relative;
border-radius: 10px;
background: #e7e7e7;
overflow: hidden;
margin: 0;
iframe {
position: absolute;
top: 0;
width: 100%;
height: 100%;
border: none;
}
}
.map-preview {
padding-top: 50%;
position: relative;
margin-bottom: 10px;
border-radius: 10px;
background: #e7e7e7;
overflow: hidden;
2019-08-06 16:19:16 +12:00
box-shadow: 0 0 30px rgba(218, 218, 218, .5);
2019-05-09 18:54:39 +12:00
iframe {
position: absolute;
top: 0;
width: 100%;
height: 100%;
border: none;
}
}
.tooltip {
position: relative;
&.large:hover:after {
white-space: normal;
width: 280px;
}
2020-03-13 20:21:33 +13:00
&.small:hover:after {
white-space: normal;
width: 180px;
}
2019-05-09 18:54:39 +12:00
&:hover:after {
white-space: nowrap;
2020-02-12 11:54:47 +13:00
background: var(--config-color-tooltip-background);
2019-05-09 18:54:39 +12:00
border-radius: 5px;
bottom: 26px;
2020-02-12 11:54:47 +13:00
color: var(--config-color-tooltip-text);
2019-05-09 18:54:39 +12:00
content: attr(data-tooltip);
padding: 5px 15px;
position: absolute;
font-size: 13px;
line-height: 20px;
z-index: 98;
.func-start(20%);
.func-margin-start(-30px);
2020-04-12 18:03:00 +12:00
word-break: break-word;
2019-05-09 18:54:39 +12:00
}
&:hover:before {
border: solid;
2020-02-12 11:54:47 +13:00
border-color: var(--config-color-tooltip-background) transparent;
2019-05-09 18:54:39 +12:00
border-width: 6px 6px 0 6px;
bottom: 20px;
content: "";
position: absolute;
z-index: 99;
.func-start(5px);
}
&.down:hover:after {
top: 26px;
bottom: inherit;
}
&.down:hover:before {
top: 20px;
border-width: 0 6px 6px 6px;
bottom: inherit;
}
}
.tag {
display: inline-block;
2020-02-11 09:21:21 +13:00
background: var(--config-color-fade-light);
2020-05-04 17:04:30 +12:00
color: var(--config-color-fade);
2019-05-09 18:54:39 +12:00
border-radius: 12px;
line-height: 24px;
padding: 0 8px;
font-size: 12px;
2019-08-06 16:19:16 +12:00
box-shadow: none !important;
2019-05-09 18:54:39 +12:00
border: none;
height: auto;
width: auto;
2019-08-10 02:11:22 +12:00
white-space: nowrap;
text-overflow: ellipsis;
2019-05-09 18:54:39 +12:00
&:hover {
border: none;
}
&.green {
2020-02-11 06:04:57 +13:00
background: var(--config-color-success);
2019-05-09 18:54:39 +12:00
color: #fff;
}
&.red {
2020-02-11 06:04:57 +13:00
background: var(--config-color-danger);
2019-05-09 18:54:39 +12:00
color: #fff;
}
&.yellow {
background: #ffe28b;
color: #494949;
}
&.focus {
2020-02-11 06:04:57 +13:00
background: var(--config-color-focus);
2019-05-09 18:54:39 +12:00
color: #ffffff;
}
&.dark {
2020-05-04 17:04:30 +12:00
background: var(--config-color-dark);
2019-05-09 18:54:39 +12:00
color: #e7e7e7;
}
&.blue {
2020-02-29 19:24:55 +13:00
background: var(--config-color-info);
2019-05-09 18:54:39 +12:00
color: #fff;
}
&.link {
2020-02-11 06:04:57 +13:00
background: var(--config-color-link);
2019-05-09 18:54:39 +12:00
color: #fff;
}
}
2020-04-24 06:49:31 +12:00
input[type=checkbox], input[type=radio] {
2019-05-09 18:54:39 +12:00
width: 26px;
height: 16px;
position: relative;
-webkit-appearance: none;
border-radius: 0;
border: none;
background: transparent;
vertical-align: middle;
2020-04-30 04:56:34 +12:00
margin: 0;
2019-05-09 18:54:39 +12:00
&:after {
content: "";
display: block;
width: 20px;
height: 20px;
2020-04-29 20:36:55 +12:00
background: var(--config-color-background-fade);
2019-05-09 18:54:39 +12:00
top: -5px;
border-radius: 50%;
position: absolute;
2020-02-11 06:04:57 +13:00
border: solid 3px var(--config-color-focus);
2019-05-09 18:54:39 +12:00
vertical-align: middle;
}
&:checked:after {
text-align: center;
font-family: "fontello";
content: '\e83d';
font-size: 16px;
line-height: 20px;
2020-02-12 10:55:00 +13:00
color: var(--config-color-background-fade);
2020-02-11 06:04:57 +13:00
background: var(--config-color-focus);
2019-05-09 18:54:39 +12:00
}
2020-04-29 20:36:55 +12:00
&[type=radio] {
&:checked:after {
//content: '●';
content: '';
display: block;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--config-color-background-fade);
border: solid 8px var(--config-color-focus);
}
}
2019-05-09 18:54:39 +12:00
&:focus {
outline: none;
}
2019-08-06 16:19:16 +12:00
&:focus:after,
&:hover:after {
2019-05-09 18:54:39 +12:00
outline: none;
2019-08-06 16:19:16 +12:00
border-color: #000000;
2019-05-09 18:54:39 +12:00
}
2019-08-06 16:19:16 +12:00
&:checked:focus:after,
&:checked:hover:after {
2020-02-11 06:04:57 +13:00
border-color: var(--config-color-focus);
2019-05-09 18:54:39 +12:00
}
}
.input-copy {
position: relative;
2019-08-06 16:19:16 +12:00
input,
textarea {
2019-05-09 18:54:39 +12:00
.func-padding-end(65px);
width: ~"calc(100% - 82px)";
resize: none;
}
.copy {
position: absolute;
top: 0;
.func-end(0);
.func-border-start(1px);
height: ~"calc(100% - 2px)";
width: 50px;
line-height: 50px;
text-align: center;
2020-02-12 10:55:00 +13:00
background: var(--config-color-background-focus);
2019-05-09 18:54:39 +12:00
margin: 1px;
border-radius: 0 10px 10px 0;
}
}
.paging {
2020-02-12 02:09:44 +13:00
color: var(--config-color-fade);
2019-05-09 18:54:39 +12:00
padding: 5px 15px;
2019-08-17 18:09:09 +12:00
font-size: 12px;
2019-08-14 09:07:41 +12:00
form {
display: inline-block;
}
2020-02-12 10:55:00 +13:00
button:disabled {
color: var(--config-color-background-fade);
opacity: .6;
}
2019-05-09 18:54:39 +12:00
}
.blue-snap {
iframe {
.input;
2019-08-06 16:19:16 +12:00
float: none !important;
height: 40px !important;
width: ~"calc(100% - 32px)" !important;
border: solid 1px #e2e2e2 !important;
background: transparent !important;
position: static !important;
2019-05-09 18:54:39 +12:00
}
.error {
font-size: 12px;
margin-top: -25px;
2020-02-11 06:04:57 +13:00
color: var(--config-color-danger);
2019-05-09 18:54:39 +12:00
height: 40px;
.func-padding-start(2px);
}
}
.pell {
height: auto;
padding-bottom: 0;
margin-bottom: 0;
padding-top: 0;
2020-04-28 06:38:06 +12:00
background: var(--config-color-background-input);
2019-08-06 16:19:16 +12:00
line-height: normal !important;
2020-05-02 06:44:43 +12:00
position: relative;
2019-05-09 18:54:39 +12:00
&.hide {
2019-08-06 16:19:16 +12:00
padding: 0 !important;
2019-05-09 18:54:39 +12:00
height: 1px;
min-height: 1px;
max-height: 1px;
border: none;
box-shadow: none;
margin-bottom: 20px;
opacity: 0;
}
2019-08-06 16:19:16 +12:00
[contenteditable=true]:empty:before {
2019-05-09 18:54:39 +12:00
content: attr(placeholder);
2019-08-06 16:19:16 +12:00
display: block;
/* For Firefox */
2020-02-11 06:04:57 +13:00
color: var(--config-color-placeholder);
2019-05-09 18:54:39 +12:00
}
.pell-actionbar {
2020-04-28 06:38:06 +12:00
border-bottom: solid 1px var(--config-color-fade-light);
2019-05-09 18:54:39 +12:00
margin: 0 -15px 15px -15px;
padding: 10px 15px;
2020-05-02 06:44:43 +12:00
position: sticky;
top: 70px;
background: var(--config-color-background-input);
border-radius: 10px 10px 0 0;
2019-05-09 18:54:39 +12:00
}
.pell-content {
min-height: 100px;
display: block;
padding: 10px;
margin: -10px;
cursor: text;
&:focus {
outline: none;
}
}
button {
background: inherit;
color: inherit;
margin: 0;
padding: 0;
.func-padding-end(15px);
height: 40px;
line-height: 40px;
box-shadow: none;
cursor: pointer;
font-size: 13px;
border-radius: 0;
2019-08-06 16:19:16 +12:00
&.pell-button-selected,
&:focus,
&:hover {
2020-02-11 06:04:57 +13:00
color: var(--config-color-link);
2019-05-09 18:54:39 +12:00
}
}
2019-08-06 16:19:16 +12:00
h1,
h2,
h3,
h4,
h5,
h6 {
2019-05-09 18:54:39 +12:00
text-align: inherit;
margin-bottom: 30px;
}
2019-08-06 16:19:16 +12:00
b,
strong {
2019-05-09 18:54:39 +12:00
font-weight: bold;
}
2020-05-01 04:34:51 +12:00
ul, ol {
2019-05-09 18:54:39 +12:00
margin: 0 0 20px 0;
li {
2019-08-06 16:19:16 +12:00
display: list-item !important;
2019-05-09 18:54:39 +12:00
list-style: inherit;
2020-05-01 04:34:51 +12:00
list-style-position: inside!important;
margin: 0 20px 2px 20px;
2019-05-09 18:54:39 +12:00
p {
margin: 0;
2020-05-01 04:34:51 +12:00
display: inline;
2019-05-09 18:54:39 +12:00
}
}
}
2020-05-01 04:34:51 +12:00
ol {
li {
list-style: decimal;
&::before {
content: '';
display: none;
}
}
2019-05-09 18:54:39 +12:00
}
}
label.switch {
line-height: 42px;
}
2020-03-15 17:54:55 +13:00
.switch, input[type=checkbox].switch, input[type=checkbox].button.switch {
2020-05-19 00:16:19 +12:00
width: 52px;
2020-05-18 16:25:57 +12:00
height: 32px;
line-height: 32px;
2019-05-09 18:54:39 +12:00
border-radius: 21px;
2020-02-11 06:04:57 +13:00
background: var(--config-color-fade);
2020-03-15 17:54:55 +13:00
display: inline-block;
2019-05-09 18:54:39 +12:00
margin: 0;
padding: 5px;
2020-02-28 06:44:03 +13:00
.func-padding-start(5px);
.func-padding-end(30px);
2020-03-15 17:54:55 +13:00
&.on, &:checked {
2020-02-28 06:44:03 +13:00
background-color: var(--config-color-success);
2020-05-19 00:16:19 +12:00
.func-padding-start(25px);
2020-02-28 06:44:03 +13:00
.func-padding-end(5px);
&:focus,
&:hover {
background: var(--config-color-success);
}
}
2019-05-09 18:54:39 +12:00
2019-08-06 16:19:16 +12:00
&:focus,
&:hover {
2020-02-28 06:44:03 +13:00
background: var(--config-color-fade);
2019-05-09 18:54:39 +12:00
&:after {
background: #ffffff;
}
}
&:after {
content: "";
display: block;
2020-05-18 16:25:57 +12:00
width: 22px;
height: 22px;
2019-05-09 18:54:39 +12:00
background: #fff;
border-radius: 50%;
border: none;
position: static;
top: 0;
}
}
.password-meter {
margin: -41px 10px 30px 10px;
height: 2px;
background: none;
max-width: 100%;
z-index: 2;
position: relative;
&.weak {
2020-02-11 06:04:57 +13:00
background: var(--config-color-danger);
2019-05-09 18:54:39 +12:00
}
&.medium {
2020-02-11 06:04:57 +13:00
background: var(--config-color-success);
2019-05-09 18:54:39 +12:00
}
&.strong {
2020-02-11 06:04:57 +13:00
background: var(--config-color-success);
2019-05-09 18:54:39 +12:00
}
}
.color-input {
.clear;
.color-preview {
width: 53px;
height: 53px;
float: @config-start;
.func-margin-end(10px);
background: #000000;
border-radius: 10px;
box-shadow: inset 0 0 3px #a0a0a0;
position: relative;
input {
opacity: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
cursor: pointer;
}
}
input {
.text-upper;
float: @config-start;
width: ~"calc(100% - 95px)";
}
}
.grecaptcha-badge {
2019-08-06 16:19:16 +12:00
box-shadow: none !important;
border-radius: 10px !important;
overflow: hidden !important;
background: #4d92df !important;
2019-05-09 18:54:39 +12:00
bottom: 25px;
&:hover {
2019-08-06 16:19:16 +12:00
width: 256px !important;
2019-05-09 18:54:39 +12:00
}
}
.back {
font-size: 15px;
line-height: 24px;
height: 24px;
.func-margin-start(-15px);
margin-top: -25px;
margin-bottom: 20px;
2020-02-28 20:37:09 +13:00
2020-04-24 06:49:31 +12:00
span {
font-weight: inherit!important;
}
2020-02-28 20:37:09 +13:00
@media @phones {
.func-margin-start(-5px);
}
2019-05-09 18:54:39 +12:00
}
hr {
height: 1px;
2020-03-17 07:41:56 +13:00
background: var(--config-border-color)!important;
2019-05-09 18:54:39 +12:00
border: none;
2020-03-17 07:41:56 +13:00
&.fade {
opacity: .7;
}
2019-05-09 18:54:39 +12:00
}
.upload {
position: relative;
.clear;
2019-08-19 16:37:58 +12:00
input {
position: absolute;
top: 0;
.func-start(0);
opacity: 0;
cursor: pointer;
}
2019-05-09 18:54:39 +12:00
&.single {
.preview {
height: 0;
position: relative;
padding-top: 100%;
width: 100%;
.margin-bottom-small;
li {
position: absolute;
top: 0;
width: ~"calc(100% - 20px)";
height: ~"calc(100% - 20px)";
2019-08-06 16:19:16 +12:00
.func-margin-end(0) !important;
margin-bottom: 0 !important;
2019-05-09 18:54:39 +12:00
}
}
}
.button {
.pull-start;
2020-04-30 04:56:34 +12:00
.margin-end-small;
2019-05-09 18:54:39 +12:00
2019-08-06 16:19:16 +12:00
&.disabled,
&.disabled:hover {
2019-05-09 18:54:39 +12:00
background: transparent;
color: inherit;
border-color: inherit;
}
}
.count {
.pull-start;
line-height: 52px;
}
.progress {
2020-02-11 06:04:57 +13:00
background: var(--config-color-success);
2019-05-09 18:54:39 +12:00
height: 6px;
border-radius: 3px;
.margin-bottom-small;
}
.preview {
.clear;
li {
.pull-start;
.margin-end;
.margin-bottom-small;
2020-04-29 20:36:55 +12:00
background: var(--config-color-background-fade-super);
2019-05-09 18:54:39 +12:00
width: 150px;
height: 150px;
line-height: 148px;
text-align: center;
border-radius: 20px;
overflow: hidden;
position: relative;
cursor: pointer;
2020-05-01 04:34:51 +12:00
border: solid 1px var(--config-color-background-dark);
2019-05-09 18:54:39 +12:00
&:hover:before {
2020-02-11 06:04:57 +13:00
background: var(--config-color-focus);
2019-05-09 18:54:39 +12:00
}
&:before {
content: '\e807';
font-family: "fontello";
font-size: 12px;
position: absolute;
width: 20px;
height: 20px;
display: block;
2020-04-29 20:36:55 +12:00
top: 8px;
.func-end(8px);
2019-05-09 18:54:39 +12:00
text-align: center;
line-height: 20px;
vertical-align: middle;
border-radius: 50%;
background: #484848;
color: #ffffff;
z-index: 1;
2019-08-06 16:19:16 +12:00
}
/* '' */
2019-05-09 18:54:39 +12:00
img {
vertical-align: middle;
max-height: 150px;
max-width: 150px;
-webkit-filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));
}
}
}
&.wide {
.preview {
li {
height: 0;
width: 100%;
position: relative;
padding-top: 30.547%;
background: #e7e7e7;
border-radius: 10px;
overflow: hidden;
border: solid 1px #f9f9f9;
margin: 0;
img {
border-radius: 10px;
position: absolute;
top: 0;
width: 100%;
display: block;
opacity: 1;
max-width: inherit;
max-height: inherit;
}
}
}
}
}
ol {
list-style: none;
counter-reset: x-counter;
padding: 0;
li {
counter-increment: x-counter;
line-height: 30px;
margin-bottom: 30px;
.func-margin-start(45px);
&::before {
display: inline-block;
content: counter(x-counter);
2020-02-11 06:51:44 +13:00
color: var(--config-color-background-fade);
2020-02-11 06:04:57 +13:00
background: var(--config-color-focus);
border: solid 2px var(--config-color-focus);
2019-05-09 18:54:39 +12:00
.func-margin-end(15px);
.func-margin-start(-45px);
width: 26px;
height: 26px;
border-radius: 50%;
text-align: center;
line-height: 26px;
}
}
}
.required {
2020-02-11 06:04:57 +13:00
color: var(--config-color-danger);
2019-05-09 18:54:39 +12:00
font-size: 8px;
position: relative;
top: -8px;
}
.drop-list {
position: relative;
outline: none;
&.open {
ul {
display: block;
}
}
ul {
.box;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.10);
display: none;
position: absolute;
bottom: ~"calc(100% + 10px)";
z-index: 2;
2019-08-21 23:00:32 +12:00
padding: 0;
2019-05-09 18:54:39 +12:00
.func-start(-10px);
max-width: 280px;
min-width: 240px;
&:before {
border: solid;
2020-05-02 06:44:43 +12:00
border-color: var(--config-color-background-fade) transparent;
2019-05-09 18:54:39 +12:00
border-width: 8px 8px 0 8px;
bottom: -8px;
content: "";
position: absolute;
z-index: 99;
.func-start(30px);
}
2020-04-22 19:03:34 +12:00
&.arrow-end:before {
.func-end(30px);
.func-start(unset);
}
2019-05-09 18:54:39 +12:00
li {
2020-02-11 06:04:57 +13:00
border-bottom: solid 1px var(--config-color-fade-super);
2019-08-21 23:00:32 +12:00
margin: 0;
2019-05-09 18:54:39 +12:00
padding: 0;
.clear;
2020-04-29 20:36:55 +12:00
&:first-child {
border-radius: 10px 10px 0 0;
}
&:last-child {
border-radius: 0 0 10px 10px;
}
2020-05-07 05:38:46 +12:00
&:hover {
2020-04-29 20:36:55 +12:00
background: var(--config-color-fade-super);
2020-05-07 05:38:46 +12:00
}
&:first-child:hover, &:last-child:hover {
2020-04-29 20:36:55 +12:00
border-color: transparent;
}
2019-08-06 16:19:16 +12:00
a,
2020-04-02 10:41:29 +13:00
.link, button.link {
display: block;
2019-05-09 18:54:39 +12:00
vertical-align: middle;
2020-04-02 10:41:29 +13:00
height: auto;
2019-05-09 18:54:39 +12:00
line-height: 30px;
2020-04-02 10:41:29 +13:00
display: inline-block;
2020-04-29 20:36:55 +12:00
padding: 10px 15px!important;
2019-05-09 18:54:39 +12:00
color: inherit;
font-size: 14px;
border: none;
cursor: pointer;
2020-04-22 19:03:34 +12:00
width: ~"calc(100% - 30px)";
2020-04-02 10:41:29 +13:00
text-align: @config-start;
2020-04-29 20:36:55 +12:00
box-sizing: content-box;
2019-05-09 18:54:39 +12:00
}
2019-08-15 01:59:24 +12:00
&.disabled a:hover, &.disabled .link:hover {
background: transparent;
}
2019-05-09 18:54:39 +12:00
.avatar {
width: 30px;
height: 30px;
.func-margin-end(10px);
.pull-start;
}
&:last-child {
border-bottom: none;
}
}
}
&.bottom {
ul {
bottom: auto;
2019-08-31 00:46:48 +12:00
margin-top: -2px;
2019-05-09 18:54:39 +12:00
&:before {
bottom: auto;
top: -8px;
border-width: 0 8px 8px 8px;
}
}
}
2020-04-02 10:41:29 +13:00
&.end {
ul {
.func-end(-10px);
.func-start(auto);
}
}
2019-05-09 18:54:39 +12:00
}
.disabled {
opacity: .2;
cursor: default;
2019-08-06 16:19:16 +12:00
a,
button,
.link,
.button {
cursor: default !important;
2019-05-09 18:54:39 +12:00
&:hover {
background: transparent;
}
}
2019-08-22 22:44:55 +12:00
}
.tags {
.input;
2020-02-12 10:55:00 +13:00
background: var(--config-color-background-input);
2019-08-22 22:44:55 +12:00
min-height: 42px;
height: auto;
2020-03-09 08:27:21 +13:00
cursor: text;
2019-08-22 22:44:55 +12:00
.add {
display: inline-block!important;
border: none;
padding: 0;
width: auto;
margin: 0;
2020-02-28 20:37:09 +13:00
max-width: 100%;
2020-03-09 08:27:21 +13:00
min-width: 200px;
2019-08-22 22:44:55 +12:00
}
ul.tags-list {
display: inline;
white-space: pre-line;
2019-08-22 22:44:55 +12:00
li {
display: inline-block!important;
.func-margin-end(10px);
font-size: 16px;
padding: 5px 10px;
cursor: pointer;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Likely future */
&::before {
.pull-end;
content: '\e807';
font-family: fontello;
font-style: normal;
display: inline-block;
text-align: center;
line-height: 16px;
width: 16px;
height: 16px;
font-size: 12px;
background: #000;
color: #fff;
border-radius: 50%;
margin-top: 4px;
margin-bottom: 4px;
.func-margin-start(6px);
.func-margin-end(0);
}
}
}
2020-02-17 23:30:04 +13:00
}
.switch-theme {
2020-02-18 00:02:09 +13:00
background: var(--config-switch-background);
2020-02-17 23:30:04 +13:00
border-radius: 19px;
2020-02-18 18:25:28 +13:00
height: 26px;
width: 44px;
margin: 9px 0;
2020-02-17 23:30:04 +13:00
button {
padding: 3px;
display: block;
background: transparent;
2020-02-18 18:25:28 +13:00
height: 26px;
2020-02-17 23:30:04 +13:00
width: 100%;
}
i {
background: var(--config-color-background-fade);
border-radius: 50%;
2020-02-18 18:25:28 +13:00
height: 18px;
width: 18px;
line-height: 18px;
2020-02-17 23:30:04 +13:00
font-size: 12px;
padding: 0;
margin: 0;
2020-02-18 18:25:28 +13:00
color: var(--config-color-fade);
2020-02-17 23:30:04 +13:00
&.force-light {
.pull-end;
}
&.force-dark {
.pull-start;
}
}
2020-06-10 02:43:24 +12:00
}
2020-07-17 20:14:16 +12:00
.dot {
width: 20px;
height: 20px;
background: var(--config-color-fade);
border-radius: 50%;
display: inline-block;
vertical-align: middle;
margin: 0!important;
padding: 0!important;
&.danger {
background: var(--config-color-danger)!important;
}
&.success {
background: var(--config-color-success)!important;
}
&.warning {
background: var(--config-color-warning)!important;
}
&.info {
background: var(--config-color-info)!important;
}
}