accounts-frontend/src/components/profile/multiFactorAuth/instructions/instructions.scss

289 lines
5.4 KiB
SCSS
Raw Normal View History

2017-07-22 21:27:38 +05:30
@import "~components/ui/fonts.scss";
.instructionTitle {
font-family: $font-family-title;
font-size: 14px;
}
.appList {
margin: 10px 0;
font-size: 11px;
2017-07-22 21:27:38 +05:30
li {
margin: 7px 0;
}
2017-07-22 21:27:38 +05:30
a {
color: #666;
border-bottom-color: #666;
border-bottom-style: dashed;
}
2017-07-22 21:27:38 +05:30
}
.otherApps {
2017-07-22 21:27:38 +05:30
position: absolute;
right: 0;
bottom: 5px;
font-size: 10px;
2017-07-22 21:27:38 +05:30
a {
color: #9E9E9E;
border-bottom-color: #9E9E9E;
}
}
2017-07-28 01:51:15 +05:30
@media screen and (min-width: 420px) {
$boxHeight: 110px;
$boxPadding: 15px;
.instructionContainer {
position: relative;
min-height: $boxHeight + $boxPadding * 2;
2017-07-22 21:27:38 +05:30
background: #fff;
border: 1px #fff solid;
transition: 0.4s ease;
}
2017-07-22 21:27:38 +05:30
.instructionActive {
background: #ebe8e1;
border-color: #d8d5ce;
}
.osList {
position: absolute;
left: 0;
right: 0;
margin: $boxPadding;
height: $boxHeight;
}
2017-07-22 21:27:38 +05:30
.osTile {
position: absolute;
text-align: center;
cursor: pointer;
2017-07-22 21:27:38 +05:30
transform: scale(1);
opacity: 1;
transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); // easeInOutQuart
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2017-07-22 21:27:38 +05:30
font-family: $font-family-title;
2017-07-22 21:27:38 +05:30
}
.osLogo {
display: block;
margin: 0 auto;
height: 80px;
color: #444;
2017-07-22 21:27:38 +05:30
}
.osName {
font-size: 15px;
margin: 10px 0;
white-space: nowrap;
2017-07-22 21:27:38 +05:30
}
.androidTile {
$translateX: 0;
transform: translateX($translateX) scale(1);
2017-07-22 21:27:38 +05:30
&:hover {
transform: translateX($translateX) scale(1.1);
}
2017-07-22 21:27:38 +05:30
.androidActive & {
transform: translateX(0);
left: 0;
}
.appleActive &,
.windowsActive & {
transform: translateX($translateX) scale(0);
opacity: 0;
}
2017-07-22 21:27:38 +05:30
}
.appleTile {
$translateX: 124px;
$translateX: -51%;
transform: translateX($translateX) scale(1);
left: 49%;
&:hover {
transform: translateX($translateX) scale(1.1);
}
.appleActive & {
transform: translateX(0);
left: 0;
}
.androidActive &,
.windowsActive & {
transform: translateX($translateX) scale(0);
opacity: 0;
}
2017-07-22 21:27:38 +05:30
}
.windowsTile {
$translateX: 230px;
$translateX: -100%;
transform: translateX($translateX) scale(1);
left: 100%;
&:hover {
transform: translateX($translateX) scale(1.1);
}
.windowsActive & {
transform: translateX(0);
left: 0;
}
.appleActive &,
.androidActive & {
transform: translateX($translateX) scale(0);
opacity: 0;
}
}
.osInstructionContainer {
2017-07-22 21:27:38 +05:30
opacity: 0;
transition: 0.4s;
.instructionActive & {
opacity: 1;
}
}
.osInstruction {
box-sizing: border-box;
position: relative;
z-index: 1;
margin: 15px;
margin-left: 30%;
padding-left: 15px;
padding-bottom: 15px;
min-height: $boxHeight;
2017-07-22 21:27:38 +05:30
}
}
@media screen and (max-width: 420px) {
.instructionContainer {
position: relative;
overflow: hidden;
}
2017-07-22 21:27:38 +05:30
.osList {
2017-07-22 21:27:38 +05:30
}
.osTile {
position: relative;
display: flex;
align-items: center;
height: 48px;
background: #fff;
$borderColor: #eee;
border-top: 1px solid $borderColor;
border-bottom: 1px solid transparent;
cursor: pointer;
transition: .3s cubic-bezier(0.215, 0.61, 0.355, 1); // easeOutCubic
&:last-of-type {
border-bottom-color: $borderColor;
}
.instructionActive & {
border-bottom-color: $borderColor;
}
2017-07-22 21:27:38 +05:30
}
.osLogo {
max-width: 30px;
}
.osName {
font-family: $font-family-title;
font-size: 16px;
margin-left: 10px;
}
@mixin commonNonActiveTile() {
2017-07-22 21:27:38 +05:30
opacity: 0;
pointer-events: none;
2017-07-22 21:27:38 +05:30
}
.androidTile {
z-index: 3;
2017-07-22 21:27:38 +05:30
.appleActive & {
@include commonNonActiveTile;
transform: translateY(-50px);
}
.windowsActive & {
@include commonNonActiveTile;
transform: translateY(-100px);
}
2017-07-22 21:27:38 +05:30
}
.appleTile {
z-index: 2;
2017-07-22 21:27:38 +05:30
.appleActive & {
transform: translateY(-50px);
}
2017-07-22 21:27:38 +05:30
.androidActive &,
.windowsActive & {
@include commonNonActiveTile;
transform: translateY(-100px);
}
}
2017-07-22 21:27:38 +05:30
.windowsTile {
z-index: 1;
.windowsActive & {
transform: translateY(-100px);
}
.androidActive &,
.appleActive & {
@include commonNonActiveTile;
transform: translateY(-100px);
}
}
.osInstructionContainer {
position: absolute;
top: -50px;
height: 100px;
opacity: 0;
transition: .4s cubic-bezier(0.23, 1, 0.32, 1); // easeOutQuint
width: 100%;
box-shadow: inset 0 -1px #eee;
.instructionActive & {
top: 50px;
opacity: 1;
}
2017-07-22 21:27:38 +05:30
}
.osInstruction {
padding-top: 10px;
}
.otherApps {
bottom: 8px;
}
2017-07-22 21:27:38 +05:30
}