提交 cd4430c8 编写于 作者: KK's avatar KK

代码格式

上级 127b2876
@import '../../node_modules/font-awesome/less/font-awesome.less'; @import "../../node_modules/font-awesome/less/font-awesome.less";
@import '../theme/blue.theme.less'; @import "../theme/blue.theme.less";
@import '../theme/dark-blue.theme.less'; @import "../theme/dark-blue.theme.less";
@import '../theme/default.theme.less'; @import "../theme/default.theme.less";
@import './theme.less'; @import "./theme.less";
@import './layout.less'; @import "./layout.less";
.view-container { .view-container {
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
.view-header { .view-header {
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
z-index: 1; z-index: 1;
.van-button{ .van-button {
height: @nav-bar-height; height: @nav-bar-height;
line-height: @nav-bar-height; line-height: @nav-bar-height;
color: @color-tertiary-contrast; color: @color-tertiary-contrast;
}
.app-view-lefttoolbar{
height: @nav-bar-height;
line-height: @nav-bar-height;
}
.app-nav-bar{
height: @nav-bar-height;
line-height: @nav-bar-height;
background: @nav-bar-backgroud;
.van-icon{
color:@nav-bar-color;
}
.van-nav-bar__title{
color: @nav-bar-color;
font-size: @nav-bar-fontSize;
}
.van-nav-bar__right {
height: @nav-bar-height;
line-height: @nav-bar-height;
}
}
} }
.view-header-bottom { .app-view-lefttoolbar {
height: 40px; height: @nav-bar-height;
width: 100%; line-height: @nav-bar-height;
} }
>.view-content { .app-nav-bar {
flex-grow: 1; height: @nav-bar-height;
overflow: auto; line-height: @nav-bar-height;
height: 50%; background: @nav-bar-backgroud;
.van-icon {
color: @nav-bar-color;
}
.van-nav-bar__title {
color: @nav-bar-color;
font-size: @nav-bar-fontSize;
}
.van-nav-bar__right {
height: @nav-bar-height;
line-height: @nav-bar-height;
}
} }
>.view-search { }
>.van-cell { .view-header-bottom {
padding: 0px; height: 40px;
padding-right: @padding-md; width: 100%;
display: flex; }
align-items: center; > .view-content {
.view-search__searchform { flex-grow: 1;
font-size: @font-size-lg; overflow: auto;
color: #969799; height: 50%;
} }
} > .view-search {
> .van-cell {
padding: 0px;
padding-right: @padding-md;
display: flex;
align-items: center;
.view-search__searchform {
font-size: @font-size-lg;
color: #969799;
}
} }
> .view-footer{ }
color: @color-tertiary-contrast; > .view-footer {
.bottom_menu{ color: @color-tertiary-contrast;
text-align: center; .bottom_menu {
margin: 0 4px 4px 4px; text-align: center;
ion-button{ margin: 0 4px 4px 4px;
width: calc(50% - 4px); ion-button {
--border-radius:0; width: calc(50% - 4px);
} --border-radius: 0;
} }
} }
}
} }
.app-layoutpanel{ .app-layoutpanel {
.app-mob-span{ .app-mob-span {
font-family: Ping; font-family: Ping;
ion-input{ ion-input {
--padding-top: 0; --padding-top: 0;
--padding-bottom: 0; --padding-bottom: 0;
--padding-end: 0; --padding-end: 0;
--padding-start: 0; --padding-start: 0;
} }
} }
ion-icon{ ion-icon {
position: relative; position: relative;
left: 8px; left: 8px;
top: 1px; top: 1px;
} }
} }
.icon { .icon {
width: 4em; width: 4em;
height: 4em; height: 4em;
vertical-align: -0.15em; vertical-align: -0.15em;
fill: currentColor; fill: currentColor;
overflow: hidden; overflow: hidden;
} }
ion-action-sheet{ ion-action-sheet {
--max-height: 60%; --max-height: 60%;
} }
// 默认主题颜色 // 默认主题颜色
...@@ -107,7 +107,7 @@ ion-action-sheet{ ...@@ -107,7 +107,7 @@ ion-action-sheet{
.theme(@default-active-color,@default-text-color); .theme(@default-active-color,@default-text-color);
// 默认布局 // 默认布局
@default-form-text-align:right; @default-form-text-align: right;
.layout(@default-form-text-align); .layout(@default-form-text-align);
@import './user.less'; @import "./user.less";
\ No newline at end of file
// 布局公共函数 // 布局公共函数
.layout(@form-text-align){ .layout(@form-text-align) {
.app-mobile-select ion-select::part(text) { .app-mobile-select ion-select::part(text) {
text-align: @form-text-align;
}
.app-mobile-check-list ion-select::part(text) {
text-align: @form-text-align;
}
.app-mobile-datetime-picker {
ion-datetime {
text-align: @form-text-align; text-align: @form-text-align;
} }
.app-mobile-check-list ion-select::part(text) { }
.app-picker .ibz-input {
text-align: @form-text-align;
}
.left {
.app-form-item-input {
text-align: @form-text-align; text-align: @form-text-align;
} }
.app-mobile-datetime-picker { }
ion-datetime{ .app-mob-mpicker > ion-input {
text-align: @form-text-align; text-align: @form-text-align;
} }
} ion-textarea {
.app-picker .ibz-input { text-align: @form-text-align;
text-align: @form-text-align; }
} }
.left{
.app-form-item-input{
text-align: @form-text-align;
}
}
.app-mob-mpicker > ion-input {
text-align: @form-text-align;
}
ion-textarea{
text-align: @form-text-align;
}
}
\ No newline at end of file
// 主题公共函数 // 主题公共函数
.theme(@theme-color,@text-color){ .theme(@theme-color,@text-color) {
ion-tab-bar{ ion-tab-bar {
ion-tab-button{ ion-tab-button {
--color-selected: @theme-color; --color-selected: @theme-color;
}
} }
ion-button{ }
ion-button {
--background: @theme-color;
--color: @text-color;
}
.view-container {
ion-header {
.ionoc-view-header {
--background: @theme-color; --background: @theme-color;
--color: @text-color; --color: @text-color;
}
.view-container {
ion-header{
.ionoc-view-header{
--background: @theme-color;
--color: @text-color;
}
} }
} }
ion-toggle { }
--background-checked: @theme-color; ion-toggle {
} --background-checked: @theme-color;
.app-form-item.item-has-focus{ }
>ion-label { .app-form-item.item-has-focus {
color: @theme-color ; > ion-label {
} color: @theme-color;
} }
ion-picker{ }
color: @theme-color ; ion-picker {
.picker-toolbar-button{ color: @theme-color;
button{ .picker-toolbar-button {
color: @theme-color ; button {
} color: @theme-color;
} }
} }
ion-action-sheet{ }
--button-color:@theme-color; ion-action-sheet {
--max-height: 60%; --button-color: @theme-color;
} --max-height: 60%;
ion-alert{ }
.alert-button{ ion-alert {
color: @theme-color ; .alert-button {
} color: @theme-color;
[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{
background-color: @theme-color ;
border-color: @theme-color ;
}
} }
ion-checkbox{ [aria-checked="true"].sc-ion-alert-ios
--background-checked : @theme-color ; .alert-checkbox-icon.sc-ion-alert-ios {
--border-color-checked: @theme-color ; background-color: @theme-color;
border-color: @theme-color;
} }
.app-embed-view{ }
.embed-view-header{ ion-checkbox {
ion-toolbar{ --background-checked: @theme-color;
--background: @theme-color; --border-color-checked: @theme-color;
} }
.app-embed-view {
.embed-view-header {
ion-toolbar {
--background: @theme-color;
} }
} }
.app-mobile-radio-list{ }
.van-radio__icon--checked .van-icon { .app-mobile-radio-list {
color: #fff; .van-radio__icon--checked .van-icon {
background-color: @theme-color; color: #fff;
border-color: @theme-color; background-color: @theme-color;
} border-color: @theme-color;
} }
.listexpbar_list{ }
.van-sidebar-item--select::before{ .listexpbar_list {
background-color: @theme-color; .van-sidebar-item--select::before {
} background-color: @theme-color;
.van-sidebar-item--select { }
border-color: @theme-color; .van-sidebar-item--select {
} border-color: @theme-color;
} }
} }
\ No newline at end of file }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册