mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
210 lines
3.3 KiB
SCSS
Executable File
210 lines
3.3 KiB
SCSS
Executable File
@import "../globals.core";
|
|
|
|
.align-left {
|
|
text-align: left;
|
|
}
|
|
|
|
.align-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.align-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.no-transition {
|
|
transition: none !important;
|
|
}
|
|
|
|
.hide,
|
|
[hidden],
|
|
template,
|
|
root-anchor {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
// Content Padding
|
|
// --------------------------------------------------
|
|
|
|
$content-padding: 16px !default;
|
|
|
|
|
|
[padding],
|
|
[padding] > scroll-content {
|
|
padding: $content-padding;
|
|
}
|
|
|
|
[padding-top] {
|
|
padding-top: $content-padding;
|
|
}
|
|
|
|
[padding-right] {
|
|
padding-right: $content-padding;
|
|
}
|
|
|
|
[padding-bottom] {
|
|
padding-bottom: $content-padding;
|
|
}
|
|
|
|
[padding-left] {
|
|
padding-left: $content-padding;
|
|
}
|
|
|
|
[padding-vertical] {
|
|
padding-top: $content-padding;
|
|
padding-bottom: $content-padding;
|
|
}
|
|
|
|
[padding-horizontal] {
|
|
padding-right: $content-padding;
|
|
padding-left: $content-padding;
|
|
}
|
|
|
|
|
|
// Focus Outline
|
|
// --------------------------------------------------
|
|
|
|
$focus-outline-border-color: #51a7e8 !default;
|
|
$focus-outline-box-shadow: 0px 0px 8px 0px $focus-outline-border-color !default;
|
|
|
|
|
|
:focus,
|
|
:active {
|
|
outline: none;
|
|
}
|
|
|
|
.focus-outline {
|
|
|
|
:focus {
|
|
outline-offset: -1px;
|
|
outline: thin dotted;
|
|
}
|
|
|
|
button:focus,
|
|
[button]:focus {
|
|
border-color: $focus-outline-border-color;
|
|
box-shadow: $focus-outline-box-shadow;
|
|
outline: thin solid $focus-outline-border-color;
|
|
}
|
|
|
|
ion-input.input-focused,
|
|
button[ion-item]:focus,
|
|
a[ion-item]:focus {
|
|
border-color: $focus-outline-border-color;
|
|
box-shadow: inset $focus-outline-box-shadow !important;
|
|
}
|
|
|
|
ion-input :focus {
|
|
outline: none;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
// Focus Controls
|
|
// -------------------------------
|
|
|
|
focus-ctrl {
|
|
position: fixed;
|
|
|
|
input,
|
|
button {
|
|
position: fixed;
|
|
top: 1px;
|
|
width: 9px;
|
|
left: -9999px;
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.hide-focused-input {
|
|
flex: 0 0 8px !important;
|
|
margin: 0 !important;
|
|
transform: translate3d(-9999px,0,0);
|
|
pointer-events: none;
|
|
}
|
|
|
|
[floating-label] .hide-focused-input,
|
|
[stacked-label] .hide-focused-input {
|
|
margin-top: -8px !important;
|
|
}
|
|
|
|
.cloned-input {
|
|
pointer-events: none;
|
|
}
|
|
|
|
|
|
// Backdrop
|
|
// --------------------------------------------------
|
|
|
|
$backdrop-color: #000 !default;
|
|
|
|
.backdrop {
|
|
position: absolute;
|
|
z-index: $z-index-backdrop;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: $backdrop-color;
|
|
opacity: 0.01;
|
|
display: block;
|
|
transform: translateZ(0);
|
|
}
|
|
|
|
|
|
|
|
// Click Block
|
|
// --------------------------------------------------
|
|
// Fill the screen to block clicks (a better pointer-events: none)
|
|
// to avoid full-page reflows and paints which can cause flickers
|
|
|
|
click-block {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
z-index: $z-index-click-block;
|
|
transform: translate3d(0px, -100%, 0px);
|
|
transform: translate3d(0px, calc(-100% + 1px), 0px);
|
|
|
|
// background: red;
|
|
// opacity: .3;
|
|
}
|
|
|
|
.click-block-active {
|
|
transform: translate3d(0px, 0px, 0px);
|
|
}
|
|
|
|
|
|
// Loading Icon
|
|
// --------------------------------------------------
|
|
|
|
@keyframes rotation {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(359deg);
|
|
}
|
|
}
|
|
ion-loading-icon {
|
|
display: flex;
|
|
align-self: center;
|
|
margin: auto;
|
|
|
|
font-family: 'Ionicons';
|
|
&:before {
|
|
content: "\f44e";
|
|
}
|
|
font-size: 128px;
|
|
color: #666666;
|
|
|
|
animation: rotation 45s infinite linear;
|
|
}
|