Refactoring less-styles v1

This commit is contained in:
Andrey Shimagin 2022-03-18 15:29:00 +03:00
parent ba2a62786d
commit b44335d903
13 changed files with 122 additions and 419 deletions

View file

@ -6,6 +6,10 @@
.wrap-comment {
padding: 16px 24px 0 16px;
background-color: @background-tertiary;
.comment-date {
color: @text-secondary;
}
.name {
font-weight: 600;
font-size: 16px;

View file

@ -89,15 +89,6 @@
.popover__titled {
.list {
ul {
background-color: var(--f7-list-bg-color);
li:first-child, li:last-child {
border-radius: 0;
a {
border-radius: 0;
}
}
}
&:first-child, &:last-child {
ul {
border-radius: 0;
@ -137,10 +128,6 @@
.list:last-child {
li:last-child {
a {
//border-radius: 0;
}
&:after {
content: '';
position: absolute;
@ -163,70 +150,6 @@
}
}
// Bullets, numbers and multilevels
.bullets,
.numbers,
.multilevels {
.list{
margin: 5px;
ul {
&:before, &:after {
display: none;
}
display: flex;
justify-content: space-around;
width: 100%;
margin-top: 10px;
padding: 0 5px;
background: none;
}
&:first-child li:first-child, &:last-child li:last-child {
border-radius: 0;
}
&:last-child li:last-child:after {
display: none;
}
}
.list .item-content {
padding-left: 0;
min-height: 68px;
.item-inner{
padding: 0;
&:after {
display: none;
}
}
}
li {
width: 70px;
height: 70px;
border: 1px solid #c4c4c4;
html.pixel-ratio-2 & {
border: 0.5px solid #c4c4c4;
}
html.pixel-ratio-3 & {
border: 0.33px solid #c4c4c4;
}
.thumb {
width: 100%;
height: 100%;
background-color: @fill-white;
background-size: cover;
label {
width: 100%;
text-align: center;
position: absolute;
top: 34%;
color: @fill-black;
}
}
}
}
.popover {
li:last-child {
.segmented a {
@ -250,9 +173,6 @@
}
.list {
li {
color: @text-normal;
}
.item-content {
.color-preview {
width: 22px;
@ -261,9 +181,6 @@
margin-top: 21px;
box-sizing: border-box;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset;
&.auto {
background-color: @autoColor;
}
}
.item-after {
.color-preview {
@ -273,22 +190,9 @@
}
}
}
li.no-indicator {
.item-link {
.item-inner {
padding-right: 15px;
&:before {
content: none;
}
}
}
}
.item-inner {
color: @text-normal;
padding-top: 7px;
color: @text-normal;
.item-after {
color: @text-normal;
.after-start {
margin: 0 5px;
}
@ -315,11 +219,6 @@
display: flex;
align-items: center;
justify-content: center;
&.active {
color: @brandColor;
// background-color: var(--button-active-opacity);
background-color: @button-active-opacity;
}
}
}
}
@ -396,13 +295,6 @@
font-family: inherit;
cursor: pointer;
outline: 0;
&.active {
background: @brandColor;
color: @fill-white;
i.icon {
background-color: @fill-white;
}
}
}
.button-fill {

View file

@ -263,29 +263,6 @@
}
// List
.list {
li {
color: @text-normal;
}
.item-inner {
color: @text-normal;
}
li.no-indicator {
.item-link {
.item-inner{
padding-right: 15px;
&:before {
content: none;
}
}
}
}
.item-link {
.item-inner {
.item-after {
color: @text-normal;
}
}
}
&.inputs-list {
.item-input, .item-link {
.item-inner {
@ -324,14 +301,6 @@
&:first-child {
margin-left: 0;
}
&.active {
color: @brandColor;
// background-color: var(--button-active-opacity);
background-color: @button-active-opacity;
// i.icon {
// background-color: @white;
// }
}
}
}
}
@ -345,82 +314,6 @@
margin-top: -3px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset;
background: @fill-white;
&.auto {
background-color: @autoColor;
}
}
}
}
// Bullets, numbers and multilevels
.bullets,
.numbers,
.multilevels {
.list{
margin: 5px;
ul {
background: none;
&:before, &:after {
display: none;
}
display: flex;
justify-content: space-around;
width: 100%;
margin-top: 10px;
padding: 0 5px;
}
&:first-child li:first-child, &:last-child li:last-child {
border-radius: 0;
}
}
.list .item-content {
padding-left: 0;
min-height: 68px;
.item-inner{
padding: 0;
&:after {
display: none;
}
}
}
li {
width: 70px;
height: 70px;
border: 1px solid @gray;
html.pixel-ratio-2 & {
border: 0.5px solid @gray;
}
html.pixel-ratio-3 & {
border: 0.33px solid @gray;
}
.thumb {
width: 100%;
height: 100%;
background-color: @fill-white;
background-size: cover;
label {
width: 100%;
text-align: center;
position: absolute;
top: 34%;
color: @fill-black;
}
}
}
}
.popover__titled {
.list {
ul {
background-color: var(--f7-list-bg-color);
li:first-child, li:last-child {
border-radius: 0;
a {
border-radius: 0;
}
}
}
}
}
@ -517,11 +410,10 @@
background-size: 24px 24px;
transition-duration: .3s;
.encoded-svg-background('<svg xmlns="http://www.w3.org/2000/svg" fill="@{white}" height="24" viewBox="0 0 24 24" width="24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
}
.searchbar input::placeholder {
&::placeholder {
color: @fill-white;
}
}
.navbar {
.searchbar-expandable.searchbar-enabled {

View file

@ -88,6 +88,16 @@
}
.list {
li.no-indicator {
.item-link {
.item-inner{
padding-right: 15px;
&:before {
content: none;
}
}
}
}
.item-text {
text-overflow: initial;
white-space: normal;
@ -98,6 +108,86 @@
.font-item img {
filter: var(--image-border-types-filter, none)
}
.buttons {
.button.active {
background-color: @button-active-opacity;
}
}
.item-content {
.color-preview.auto {
background-color: @autoColor;
}
}
}
// Bullets, numbers and multilevels
.bullets,
.numbers,
.multilevels {
.list{
margin: 5px;
ul {
background: none;
&:before, &:after {
display: none;
}
display: flex;
justify-content: space-around;
width: 100%;
margin-top: 10px;
padding: 0 5px;
li {
width: 70px;
height: 70px;
border: 1px solid @gray;
html.pixel-ratio-2 & {
border: 0.5px solid @gray;
}
html.pixel-ratio-3 & {
border: 0.33px solid @gray;
}
.thumb {
width: 100%;
height: 100%;
background-color: @fill-white;
background-size: cover;
label {
width: 100%;
text-align: center;
position: absolute;
top: 34%;
color: @fill-black;
}
}
}
}
}
.row.list .item-content {
padding-left: 0;
min-height: 68px;
.item-inner{
padding: 0;
&:after {
display: none;
}
}
}
}
.popover__titled .popover-inner{
.list {
ul {
background-color: var(--f7-list-bg-color);
li:first-child, li:last-child {
a {
border-radius: 0;
}
}
}
}
}
.shapes {

View file

@ -1,38 +0,0 @@
// About
.about {
.page-content {
text-align: center;
}
.content-block:first-child {
margin: 15px 0;
}
.content-block {
margin: 0 auto 15px;
a {
color: #000;
}
}
h3 {
font-weight: normal;
margin: 0;
&.vendor {
color: #000;
font-weight: bold;
margin-top: 15px;
}
}
p > label {
margin-right: 5px;
}
.logo {
background: url('../../../../common/mobile/resources/img/about/logo.svg') no-repeat center;
margin-top: 20px;
}
}

View file

@ -1,35 +0,0 @@
// Data view
.dataview {
&.page-content {
background: @white;
}
.row {
justify-content: space-around;
}
ul {
padding: 0 10px;
list-style: none;
li {
display: inline-block;
}
}
.active {
position: relative;
z-index: 1;
&::after {
content: '';
position: absolute;
width: 22px;
height: 22px;
right: -5px;
bottom: -5px;
.encoded-svg-background('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 22 22" fill="@{brandColor}"><g><circle fill="#fff" cx="11" cy="11" r="11"/><path d="M11,21A10,10,0,1,1,21,11,10,10,0,0,1,11,21h0ZM17.4,7.32L17.06,7a0.48,0.48,0,0,0-.67,0l-7,6.84L6.95,11.24a0.51,0.51,0,0,0-.59.08L6,11.66a0.58,0.58,0,0,0,0,.65l3.19,3.35a0.38,0.38,0,0,0,.39,0L17.4,8a0.48,0.48,0,0,0,0-.67h0Z"/></g></svg>');
}
}
}

View file

@ -1,10 +1,6 @@
.device-ios {
.wrap-comment {
height: calc(100% - 60px);
background-color: @background-tertiary;
.comment-date {
color: @text-secondary;
}
}
.add-comment-popup, .add-reply-popup, .add-comment-dialog, .add-reply-dialog {
.wrap-textarea {

View file

@ -1,38 +0,0 @@
// About
.about {
.page-content {
text-align: center;
}
.content-block:first-child {
margin: 15px 0;
}
.content-block {
margin: 0 auto 15px;
a {
color: #000;
}
}
h3 {
font-weight: normal;
margin: 0;
&.vendor {
color: #000;
font-weight: bold;
margin-top: 15px;
}
}
p > label {
margin-right: 5px;
}
.logo {
background: url('../../../../common/mobile/resources/img/about/logo.svg') no-repeat center;
}
}

View file

@ -1,32 +0,0 @@
// Data view
.dataview {
.row {
justify-content: space-around;
}
ul {
padding: 0 10px;
list-style: none;
justify-content: space-around;
li {
display: inline-block;
}
}
.active {
position: relative;
z-index: 1;
&::after {
content: '';
position: absolute;
width: 22px;
height: 22px;
right: -5px;
bottom: -5px;
.encoded-svg-background('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 22 22" fill="@{brandColor}"><g><circle fill="#fff" cx="11" cy="11" r="11"/><path d="M11,21A10,10,0,1,1,21,11,10,10,0,0,1,11,21h0ZM17.4,7.32L17.06,7a0.48,0.48,0,0,0-.67,0l-7,6.84L6.95,11.24a0.51,0.51,0,0,0-.59.08L6,11.66a0.58,0.58,0,0,0,0,.65l3.19,3.35a0.38,0.38,0,0,0,.39,0L17.4,8a0.48,0.48,0,0,0,0-.67h0Z"/></g></svg>');
}
}
}

View file

@ -1,10 +1,6 @@
.device-android {
.wrap-comment {
height: calc(100% - 72px);
background-color: @background-tertiary;
.comment-date {
color: @text-secondary;
}
}
.add-comment-popup, .add-reply-popup, .add-comment-dialog, .add-reply-dialog {
.wrap-textarea {

View file

@ -40,27 +40,3 @@
}
}
// Color Schemes
.color-schemes-menu {
cursor: pointer;
display: block;
// background-color: #fff;
.item-inner {
justify-content: flex-start;
}
.color-schema-block {
display: flex;
}
.color {
min-width: 26px;
min-height: 26px;
margin: 0 2px 0 0;
box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset;
}
.item-title {
margin-left: 20px;
// color: #212121;
}
}

View file

@ -87,27 +87,3 @@
}
}
}
// Color Schemes
.color-schemes-menu {
cursor: pointer;
display: block;
// background-color: #fff;
.item-inner {
justify-content: flex-start;
}
.color-schema-block {
display: flex;
}
.color {
min-width: 26px;
min-height: 26px;
margin: 0 2px 0 0;
box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset;
}
.item-title {
margin-left: 20px;
// color: #212121;
}
}

View file

@ -160,6 +160,30 @@
height: 50px;
}
// Color Schemes
.color-schemes-menu {
cursor: pointer;
display: block;
// background-color: #fff;
.item-inner {
justify-content: flex-start;
}
.color-schema-block {
display: flex;
}
.color {
min-width: 26px;
min-height: 26px;
margin: 0 2px 0 0;
box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset;
}
.item-title {
margin-left: 20px;
// color: #212121;
}
}
// Picker
.row-picker {