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

153 lines
3.4 KiB
Plaintext
Raw Normal View History

2020-12-01 07:50:33 +00:00
@white: #ffffff;
@black: #000000;
@gray: #c4c4c4;
@green: #4cd964;
2020-12-27 13:31:40 +00:00
@background-normal: @white;
@autoColor: @black;
2020-12-01 07:50:33 +00:00
2020-11-20 14:39:53 +00:00
.popup, .popover, .sheet-modal {
.list:first-child {
margin-top: 0;
}
}
2020-10-26 07:59:18 +00:00
.row {
padding: 0 10px;
li {
list-style: none;
}
}
.shapes {
li {
width: 70px;
height: 70px;
margin: 0 1px;
.thumb {
width: 100%;
height: 100%;
background-color: @themeColor;
}
}
}
2020-11-06 21:10:26 +00:00
.segmented {
.decrement, .increment {
text-overflow: clip;
}
}
.content-block {
margin: 32px 0;
padding: 0 16px;
box-sizing: border-box;
}
.item-color-auto {
.color-auto {
width:22px;
height: 22px;
background-color: @autoColor;
}
&.active {
.color-auto {
2020-12-27 13:31:40 +00:00
box-shadow: 0 0 0 1px @background-normal, 0 0 0 4px @themeColor;
border-radius: 1px;
}
}
}
.color-palettes {
.palette {
padding: 8px 0px;
a {
flex-grow: 1;
position: relative;
min-width: 10px;
min-height: 26px;
margin: 1px 1px 0 0;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset;
&.active:after {
content: ' ';
position: absolute;
width: 100%;
height: 100%;
2020-12-27 13:31:40 +00:00
box-shadow: 0 0 0 1px @background-normal, 0 0 0 4px @themeColor;
z-index: 1;
border-radius: 1px;
}
&.transparent {
background-repeat: no-repeat;
background-size: 100% 100%;
.encoded-svg-background("<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 22 22' xml:space='preserve'><line stroke='#ff0000' stroke-linecap='undefined' stroke-linejoin='undefined' id='svg_1' y2='0' x2='22' y1='22' x1='0' stroke-width='2' fill='none'/></svg>");
}
}
}
.row {
padding: 0;
}
.list .item-inner {
display: block;
}
.standart-colors, .dynamic-colors {
.palette {
display: flex;
}
}
2020-12-27 13:31:40 +00:00
.dynamic-colors {
.empty-color {
background-color: @background-normal;
}
}
}
#color-picker {
display: flex;
justify-content: space-around;
align-items: center;
max-width: 300px;
margin: 0 auto;
margin-top: 4px;
.color-picker-container {
width: calc(100% - 94px);
position: relative;
max-width: 100%;
height: auto;
font-size: 0;
.color-picker-module-wheel {
margin: 0;
}
}
.right-block {
margin-left: 20px;
.color-hsb-preview {
width: 72px;
height: 72px;
border-radius: 100px;
overflow: hidden;
border: 1px solid @gray;
.new-color-hsb-preview, .current-color-hsb-preview {
width: 100%;
height: 36px;
}
}
.button-round {
height: 72px;
width: 72px;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100px;
background-color: @white;
box-shadow: 0 4px 4px rgba(0,0,0,.25);
border-color: transparent;
margin-top: 20px;
}
}
}