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

549 lines
14 KiB
Plaintext
Raw Normal View History

2020-10-14 09:00:05 +00:00
.device-android {
2020-11-26 16:38:10 +00:00
@tabLinkColor: rgba(255,255,255,.7);
@red: #f44336;
2021-01-20 14:30:52 +00:00
@white: #fff;
@darkGreen: #40865c;
@darkGrey: #757575;
@touchColor: rgba(255,255,255,0.1);
2020-11-26 16:38:10 +00:00
--f7-navbar-shadow-image: none;
2021-04-15 09:42:44 +00:00
--f7-theme-color: @themeColor;
2021-04-15 09:42:44 +00:00
--f7-navbar-bg-color: @themeColor;
--f7-navbar-link-color: @navBarIconColor;
--f7-navbar-text-color: @navBarIconColor;
--f7-navbar-height: 56px;
--f7-subnavbar-bg-color: @themeColor;
--f7-subnavbar-link-color: @navBarIconColor;
--f7-subnavbar-text-color: @navBarIconColor;
--f7-subnavbar-height: 56px;
2020-11-26 16:38:10 +00:00
--f7-radio-active-color: @themeColor;
--f7-toggle-active-color: @themeColor;
--f7-range-bar-active-bg-color: @themeColor;
--f7-range-knob-color: @themeColor;
--f7-range-knob-size: 16px;
--f7-link-highlight-color: transparent;
--f7-link-touch-ripple-color: @touchColor;
.button {
--f7-touch-ripple-color: transparent;
}
2020-11-26 16:38:10 +00:00
--f7-input-focused-border-color: @themeColor;
--f7-label-focused-text-color: @themeColor;
--f7-dialog-button-text-color: @themeColor;
.navbar {
2021-07-09 11:44:11 +00:00
--f7-touch-ripple-color: @touchColor;
.sheet-close {
width: 56px;
height: 56px;
display: flex;
justify-content: center;
}
}
2021-04-15 09:42:44 +00:00
.page.page-with-subnavbar.page-with-logo {
.page-content {
--f7-page-navbar-offset: var(--f7-navbar-height);
}
}
2021-06-17 15:58:45 +00:00
.add-popup {
.view{
.block-title{
margin-bottom: 0;
margin-top: 8px;
}
.inputs-list {
ul:after, :before{
display: none;
}
}
}
}
2020-11-26 16:38:10 +00:00
// Buttons
.segmented {
.decrement, .increment {
display: flex;
border: none;
min-width: 40px;
margin-left: 0;
border-radius: 0;
height: 32px;
}
label {
color: @black;
margin: 0 5px;
line-height: 32px;
}
}
.button {
--f7-button-text-color: @themeColor;
color: @themeColor;
2020-11-26 16:38:10 +00:00
text-align: center;
display: block;
2021-01-20 14:30:52 +00:00
border-radius: 2px;
line-height: 36px;
2020-11-26 16:38:10 +00:00
box-sizing: border-box;
appearance: none;
background: 0 0;
margin: 0;
2021-01-20 14:30:52 +00:00
height: 36px;
2020-11-26 16:38:10 +00:00
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
text-transform: uppercase;
font-family: inherit;
cursor: pointer;
2021-01-20 14:30:52 +00:00
min-width: 64px;
padding: 0 8px;
2020-11-26 16:38:10 +00:00
position: relative;
overflow: hidden;
outline: 0;
-webkit-transition-duration: .3s;
transition-duration: .3s;
-webkit-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
2021-01-20 14:30:52 +00:00
.button-fill {
color: @white;
2021-05-30 13:34:15 +00:00
// background-color: @themeColor;
background-color: transparent;
2021-01-20 14:30:52 +00:00
}
.button-raised {
box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
}
.button-red {
color: @white;
background-color: @red;
}
.buttons-list {
2021-05-30 13:34:15 +00:00
ul {
&::before, &::after {
display: none;
}
li {
margin: 20px 16px;
color: @white;
border-radius: 2px;
text-transform: uppercase;
height: 36px;
min-height: 36px;
font-size: 14px;
}
2021-01-20 14:30:52 +00:00
}
}
2021-01-17 16:30:57 +00:00
.table-presets {
.button {
min-width: 0;
}
}
2020-11-26 16:38:10 +00:00
.button-fill .list-button {
background-color: @themeColor;
color: @white;
height: 36px;
text-align: center;
line-height: 36px;
text-transform: uppercase;
font-size: 14px;
font-weight: 500;
border-radius: 2px;
2021-05-30 13:34:15 +00:00
// margin: 20px 16px;
margin: 0;
2020-11-26 16:38:10 +00:00
}
.button-raised .list-button {
box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
}
.button-red .list-button {
background-color: @red;
}
// Tabs
.tab-buttons {
position: relative;
display: flex;
height: 100%;
width: 100%;
justify-content: space-between;
.tab-link {
2020-12-15 12:16:15 +00:00
justify-content: center;
2020-11-26 16:38:10 +00:00
height: 100%;
box-sizing: border-box;
padding-left: 0;
padding-right: 0;
font-size: 14px;
font-weight: 500;
text-transform: uppercase;
align-items: center;
color: @tabLinkColor;
2020-12-15 12:16:15 +00:00
i.icon {
opacity: 0.5;
}
2020-11-26 16:38:10 +00:00
&.tab-link-active {
color: @white;
2020-12-15 12:16:15 +00:00
i.icon {
opacity: 1;
}
2020-11-26 16:38:10 +00:00
}
}
.tab-link-highlight {
--f7-tabbar-link-active-border-color: rgba(255,255,255,0.5);
position: absolute;
left: 0;
bottom: 0;
height: 3px;
}
}
// List
.list {
li.no-indicator {
.item-link {
.item-inner{
padding-right: 15px;
&:before {
content: none;
}
2020-11-26 16:38:10 +00:00
}
}
}
.item-link {
.item-inner {
.item-after {
color: @black;
}
}
}
&.inputs-list {
.item-input, .item-link {
2020-11-26 16:38:10 +00:00
.item-inner {
display: block;
.item-title, .item-label {
2020-11-26 16:38:10 +00:00
width: 100%;
font-size: 12px;
}
.item-input-wrap {
margin-left: 0;
}
}
}
}
.buttons {
box-sizing: border-box;
min-height: 48px;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
.item-content {
width: 100%;
.item-inner {
padding-bottom: 0;
padding-top: 0;
.row {
width: 100%;
.button {
flex: 1;
font-size: 17px;
margin-left: 5px;
2021-06-28 11:16:41 +00:00
display: flex;
align-items: center;
justify-content: center;
2020-11-26 16:38:10 +00:00
&:first-child {
margin-left: 0;
}
&.active {
color: @white;
background-color: @themeColor;
i.icon {
background-color: @white;
}
}
}
}
}
}
}
.item-content {
.color-preview {
width: 30px;
height: 30px;
border-radius: 16px;
margin-top: -3px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) inset;
&.auto {
background-color: @autoColor;
}
}
}
2020-11-26 16:38:10 +00:00
}
2021-06-02 15:33:27 +00:00
// Bullets, numbers and multilevels
2020-11-26 16:38:10 +00:00
.bullets,
2021-06-02 15:33:27 +00:00
.numbers,
.multilevels {
2021-06-08 12:20:50 +00:00
.list{
margin: 5px;
2021-06-10 12:28:21 +00:00
ul {
&: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;
}
2021-06-07 15:06:55 +00:00
}
.list .item-content {
padding-left: 0;
2021-06-08 12:20:50 +00:00
min-height: 68px;
2021-06-07 15:06:55 +00:00
.item-inner{
padding: 0;
2021-06-10 12:28:21 +00:00
&:after {
display: none;
}
2021-06-07 15:06:55 +00:00
}
}
2020-11-26 16:38:10 +00:00
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: @white;
background-size: cover;
label {
width: 100%;
text-align: center;
position: absolute;
top: 34%;
}
}
}
}
.popover__titled {
.list:last-child {
li:last-child {
a {
border-radius: 0;
}
}
}
}
// Color palette
#color-picker {
.right-block {
.button-round {
background-color: @themeColor;
}
}
}
2021-02-25 17:42:07 +00:00
// Regional Settings
.regional-settings {
.list {
.item-inner {
margin-left: 16px;
}
.item-title-row {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
flex-direction: row-reverse;
.item-title {
white-space: normal;
}
}
}
}
2021-03-11 17:21:05 +00:00
// Find and Replace
.searchbar-inner {
&__center {
flex-wrap: wrap;
}
// &__left {
// padding-top: 4px;
// }
2021-03-11 17:21:05 +00:00
}
.navbar {
.searchbar-input-wrap {
height: 32px;
margin-right: 10px;
margin: 4px 0;
}
&-inner {
overflow: initial;
}
}
.searchbar .input-clear-button {
width: 18px;
height: 18px;
&:after {
color: @white;
font-size: 19px;
}
}
.searchbar-icon {
&:after {
color: @white;
font-size: 19px;
}
}
.searchbar input[type=search] {
box-sizing: border-box;
width: 100%;
display: block;
border: none;
appearance: none;
border-radius: 0;
font-family: inherit;
color: @white;
font-size: 16px;
font-weight: 400;
padding: 0;
border-bottom: 1px solid @white;
height: 100%;
padding: 0 36px 0 24px;
background-color: transparent;
background-repeat: no-repeat;
background-position: 0 center;
opacity: 1;
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[type=search]::placeholder {
color: @white;
}
.navbar {
.searchbar-expandable.searchbar-enabled {
top: 0;
// height: 100%;
.searchbar-inner {
height: 100%;
&__center {
flex-direction: column;
}
&__right {
flex-direction: column-reverse;
}
}
&.replace {
height: 96px;
}
}
a.link {
padding: 0 16px;
}
a.icon-only {
width: auto;
2021-04-15 09:42:44 +00:00
height: 56px;
2021-03-11 17:21:05 +00:00
}
.buttons-row-replace a {
color: @white;
padding: 0;
2021-03-11 17:21:05 +00:00
}
.searchbar .buttons-row {
align-self: flex-start;
}
}
@media(max-width: 550px) {
.searchbar-expandable.searchbar-enabled {
.searchbar-inner {
&__left {
margin-right: 33px;
}
}
}
}
.actions-button-text {
cursor: pointer;
line-height: 48px;
font-size: 16px;
color: rgba(0,0,0,.87);
}
@media (min-width: 496px) {
.actions-modal {
width: 100%;
left: auto;
margin-left: 0;
}
}
2021-06-03 13:25:52 +00:00
input.modal-text-input {
box-sizing: border-box;
height: 36px;
background: #fff;
margin: 0;
margin-top: 15px;
padding: 0;
border: none;
width: 100%;
font-size: 16px;
font-family: inherit;
display: block;
box-shadow: none;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
appearance: none;
-webkit-transition-duration: .2s;
transition-duration: .2s;
}
.input-field {
.inputs-list {
margin: 15px 0 0;
ul {
&::before, &::after {
display: none;
}
}
.item-input, .item-inner {
padding: 0;
}
}
}
2020-10-14 09:00:05 +00:00
}