web-apps/apps/common/mobile/resources/less/common-ios.less
2021-04-30 01:18:03 +03:00

541 lines
13 KiB
Plaintext

.device-ios {
@blockTitleColor: #6d6d72;
@item-border-color: #c8c7cc;
--f7-list-item-border-color: @item-border-color;
@darkGreen: #40865c;
--f7-navbar-link-color: @themeColor;
--f7-subnavbar-link-color: @themeColor;
--f7-navbar-text-color: @black;
--f7-navbar-title-line-height: 44px;
--f7-navbar-link-line-height: 44px;
--f7-navbar-title-font-size: 17px;
--f7-list-bg-color: @white;
--f7-navbar-bg-color: #f7f7f8;
--f7-tabbar-link-inactive-color: @themeColor;
--f7-radio-active-color: @themeColor;
--f7-toggle-active-color: @themeColor;
--f7-range-bar-active-bg-color: @themeColor;
--f7-list-button-text-color: @themeColor;
--f7-dialog-button-text-color: @themeColor;
// Main Toolbar
#editor-navbar.navbar .right a + a,
#editor-navbar.navbar .left a + a {
margin-left: 0;
}
.navbar, .subnavbar {
a.btn-doc-back {
width: 22px;
}
background-color: var(--f7-navbar-bg-color);
.title {
font-weight: 600;
}
.navbar-inner, .subnavbar-inner {
z-index: auto;
}
.sheet-close {
width: 44px;
height: 44px;
display: flex;
justify-content: center;
}
}
.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;
}
li:first-child, li:last-child {
> label {
border-radius: 0;
}
}
}
}
.popover-inner {
//border-radius: var(--f7-popover-border-radius);
> .view {
border-radius: var(--f7-popover-border-radius);
}
}
.navbar-bg {
//-webkit-backdrop-filter: none;
backdrop-filter: none;
}
.list:first-child {
li:first-child {
a {
border-radius: 0;
}
}
}
.list:last-child {
li:last-child {
a {
//border-radius: 0;
}
&:after {
content: '';
position: absolute;
background-color: var(--f7-navbar-border-color, var(--f7-bars-border-color));
display: block;
//z-index: 15;
top: auto;
right: auto;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
transform-origin: 50% 100%;
transform: scaleY(calc(1 / var(--f7-device-pixel-ratio)));
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
}
}
}
// Bullets and numbers
.bullets,
.numbers {
.page-content {
background: @white;
}
.row {
justify-content: space-around;
}
ul {
margin-top: 10px;
}
li {
width: 70px;
height: 70px;
margin-right: 1px;
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: @white;
background-size: cover;
label {
width: 100%;
text-align: center;
position: absolute;
top: 34%;
}
}
}
}
.popover {
li:last-child {
.segmented a {
&:first-child {
border-radius: var(--f7-button-border-radius) 0 0 var(--f7-button-border-radius);
}
&:last-child {
border-radius: 0 var(--f7-button-border-radius) var(--f7-button-border-radius) 0;
}
}
}
.page-content {
> .list {
&:last-child {
margin-bottom: 30px;
}
}
}
}
.list {
.item-content {
.color-preview {
width: 22px;
height: 8px;
display: inline-block;
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 {
width: 75px;
height: 30px;
margin-top: -3px;
}
}
}
li.no-indicator {
.item-link {
.item-inner {
padding-right: 15px;
&:before {
content: none;
}
}
}
}
.item-inner {
padding-top: 7px;
.item-after {
color: @black;
.after-start {
margin: 0 5px;
}
.segmented {
min-width: 90px;
margin-left: 10px;
}
}
}
.buttons {
.item-inner {
padding-top: 0;
padding-bottom: 0;
align-items: stretch;
> .row {
width: 100%;
align-items: stretch;
.button {
flex: 1;
border: none;
height: inherit;
border-radius: 0;
font-size: 17px;
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
.list-input-right input {
text-align: right;
}
}
.tab-buttons {
width: 100%;
display: flex;
flex-wrap: nowrap;
align-self: center;
.tab-link {
display: block;
width: 100%;
line-height: 26px;
position: relative;
overflow: hidden;
-webkit-box-flex: 1;
border: 1px solid @themeColor;
text-decoration: none;
text-align: center;
margin: 0;
padding: 0 1px;
height: 29px;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
font-family: inherit;
cursor: pointer;
outline: 0;
font-weight: 600;
&:first-child {
border-radius: 5px 0 0 5px;
border-left-width: 1px;
border-left-style: solid;
}
&:last-child {
border-radius: 0 5px 5px 0;
}
&.tab-link-active {
background: @themeColor;
color: @white;
}
}
}
.button {
border: 1px solid @themeColor;
color: @themeColor;
text-decoration: none;
text-align: center;
display: block;
border-radius: 5px;
line-height: 27px;
box-sizing: border-box;
background: 0 0;
padding: 0 10px;
margin: 0;
height: 29px;
white-space: nowrap;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
font-family: inherit;
cursor: pointer;
outline: 0;
&.active {
background: @themeColor;
color: @white;
i.icon {
background-color: @white;
}
}
}
.button-fill {
color: @themeColor;
background-color: @white;
}
.button-red {
color: @red;
background-color: @white;
}
.buttons-list {
li {
border: 0;
border-radius: 0;
height: 43px;
min-height: 43px;
font-size: 17px;
text-transform: initial;
padding: 0;
box-shadow: none;
}
}
.button-red .list-button {
color: red;
}
.block-title {
position: relative;
overflow: hidden;
margin: 0;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
text-transform: uppercase;
line-height: 1;
color: @blockTitleColor;
margin: 35px 15px 10px;
}
.shapes {
.page-content {
background: @white;
}
}
.dialog {
background-color: rgba(var(--f7-dialog-bg-color-rgb), 1);
}
#color-picker {
.right-block {
.button-round {
.icon {
height: 30px;
width: 30px;
}
}
}
}
.about {
.logo {
margin-top: 20px;
}
}
.content-block {
color: @blockTitleColor;
}
.dataview, #add-table, #add-shape, #add-slide, #add-chart {
&.page-content, .page-content {
background-color: @white;
}
}
// input[type="number"]
input[type="number"] {
&::placeholder,
&::-webkit-input-placeholder,
&::-moz-placeholder,
&:-moz-placeholder,
&:-ms-input-placeholder
{
color: @darkGreen;
}
}
// Regional Settings
.regional-settings {
.item-title-row {
display: flex;
justify-content: flex-start;
align-items: center;
.item-title {
margin-left: 20px;
white-space: normal;
}
}
}
// Find and Replace
.navbar {
.searchbar {
background: var(--f7-navbar-bg-color);
}
.searchbar-input-wrap {
margin-right: 10px;
height: 28px;
}
.buttons-row-replace a {
color: @themeColor;
}
}
.searchbar input[type=search] {
box-sizing: border-box;
width: 100%;
height: 100%;
display: block;
border: none;
appearance: none;
border-radius: 5px;
font-family: inherit;
color: @black;
font-size: 14px;
font-weight: 400;
padding: 0 8px;
background-color: @white;
padding: 0 28px;
}
.searchbar-inner {
&__left {
margin-right: 10px;
justify-content: center;
}
&__right {
.buttons-row a.next {
margin-left: 15px;
}
}
}
.searchbar-expandable.searchbar-enabled {
&.replace {
.searchbar-inner {
&__right {
width: 28%;
}
}
}
}
@media(max-width: 550px) {
.navbar {
.searchbar-input-wrap {
margin-right: 0;
}
}
.searchbar-expandable.searchbar-enabled {
top: 0;
.searchbar-inner {
&__center {
flex-direction: column;
}
&__right {
flex-direction: column-reverse;
margin-left: 10px;
}
}
&.replace {
height: 88px;
.searchbar-inner {
height: 100%;
&__center {
.searchbar-input-wrap {
margin: 8px 0;
}
}
&__right {
width: auto;
height: 100%;
justify-content: space-between;
.buttons-row-replace {
height: 50%;
}
}
}
}
}
}
.actions-button {
background: rgba(255,255,255,.95);
}
.actions-button-text {
height: 57px;
line-height: 57px;
font-size: 20px;
color: @themeColor;
white-space: normal;
text-overflow: ellipsis;
}
}