UNPKG

@pi0/framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

134 lines (127 loc) 2.66 kB
.ios { @import (multiple) '../../less/colors-ios.less'; @import (multiple) '../../less/vars-ios.less'; @duration: 400ms; .toolbar { height: @toolbarSize; font-size: 17px; background: @toolbarBg; bottom: 0; &:after { backface-visibility: hidden; } a.link { line-height: @toolbarSize; height: @toolbarSize; i + span, i + i, span + i, span + span { .ltr({ margin-left: 7px; }); .rtl({ margin-right: 7px; }); } } a.icon-only { min-height: @toolbarSize; display: flex; justify-content: center; align-items: center; margin: 0; min-width: 44px; } b { font-weight: 600; } &.no-hairline { .hairline-remove(top); } } .hairline-root('.toolbar', top, @toolbarBorderColor); .toolbar-inner { padding: 0 8px; } .tabbar, .tabbar-labels { color: @tabbarLinkColor; a { color: @tabbarLinkColor; } a.tab-link-active { color: @tabbarActiveLinkColor; } i.icon { height: 30px; } } .tabbar-labels { height: @tabbarLabelsSize; a.tab-link, a.link { padding-top: 4px; padding-bottom: 4px; i + span { margin: 0; } } .tabbar-label { letter-spacing: 0.01em; font-size: 10px; } } @media (min-width: 768px) { .tabbar, .tabbar-labels { .toolbar-inner { justify-content: center; } a.tab-link, a.link { width: auto; min-width: 105px; } } .tabbar-labels { height: @tabbarLabelsSizeTablet; .tabbar-label { font-size: 14px; } } } // Scrollable .tabbar-scrollable { a.tab-link, a.link { padding: 0 8px; } } // Relation with page .toolbar ~ * .page-content, .toolbar ~ .page-content { padding-bottom: @toolbarSize; } .tabbar-labels ~ * .page-content, .tabbar-labels ~ .page-content { padding-bottom: @tabbarLabelsSize; @media (min-width: 768px) { padding-bottom: @tabbarLabelsSizeTablet; } } // Transitions .toolbar-transitioning { transition-duration: @duration; } // Hidden .toolbar-hidden { transform: translate3d(0, 100%, 0); } .color-theme-loop({ .color-theme-@{colorThemeName} { .tabbar, .tabbar-labels, &.tabbar-labels, &.tabbar { a.tab-link-active { color: @colorThemeValue; } } } }); .color-loop({ .tabbar-labels.color-@{colorName}, .tabbar.color-@{colorName} { a.tab-link-active { color: @colorValue; } } }); }