accounts-frontend/packages/app/components/profile/multiFactorAuth/instructions/instructions.scss

312 lines
6.2 KiB
SCSS
Raw Normal View History

@import '~app/components/ui/fonts.scss';
2017-07-22 21:27:38 +05:30
.instructionTitle {
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
font-size: 14px;
}
.appList {
2020-05-24 04:38:24 +05:30
margin: 10px 0;
font-size: 11px;
li {
margin: 7px 0;
}
a {
color: #666;
border-bottom-color: #666;
border-bottom-style: dashed;
}
2017-07-22 21:27:38 +05:30
}
.otherApps {
2020-05-24 04:38:24 +05:30
position: absolute;
2021-03-26 08:49:04 +05:30
inset-inline-end: 0;
2020-05-24 04:38:24 +05:30
bottom: 5px;
font-size: 10px;
a {
color: #9e9e9e;
border-bottom-color: #9e9e9e;
}
}
2017-07-28 01:51:15 +05:30
@media screen and (min-width: 420px) {
2020-05-24 04:38:24 +05:30
$boxHeight: 110px;
$boxPadding: 15px;
2020-05-24 04:38:24 +05:30
.instructionContainer {
position: relative;
min-height: $boxHeight + $boxPadding * 2;
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
background: #fff;
border: 1px #fff solid;
2020-05-24 04:38:24 +05:30
transition: 0.4s ease;
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.instructionActive {
background: #ebe8e1;
border-color: #d8d5ce;
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.osList {
position: absolute;
left: 0;
right: 0;
margin: $boxPadding;
height: $boxHeight;
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.osTile {
position: absolute;
text-align: center;
cursor: pointer;
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +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
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.osLogo {
display: block;
margin: 0 auto;
height: 80px;
color: #444;
}
2020-05-24 04:38:24 +05:30
.osName {
font-size: 15px;
margin: 10px 0;
white-space: nowrap;
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.androidTile {
$translateX: 0;
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
transform: translateX($translateX) scale(1);
2020-05-24 04:38:24 +05:30
&:hover {
transform: translateX($translateX) scale(1.1);
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.androidActive & {
transform: translateX(0);
2021-03-26 08:49:04 +05:30
inset-inline-start: 0;
2020-05-24 04:38:24 +05:30
}
2020-05-24 04:38:24 +05:30
.appleActive &,
.windowsActive & {
transform: translateX($translateX) scale(0);
opacity: 0;
}
}
2020-05-24 04:38:24 +05:30
.appleTile {
$translateX: 124px;
$translateX: -51%;
2020-05-24 04:38:24 +05:30
transform: translateX($translateX) scale(1);
2021-03-26 08:49:04 +05:30
inset-inline-start: 49%;
html[dir='rtl'] & {
transform: translateX(-$translateX) scale(1);
}
2020-05-24 04:38:24 +05:30
&:hover {
transform: translateX($translateX) scale(1.1);
2021-03-26 08:49:04 +05:30
html[dir='rtl'] & {
transform: translateX(-$translateX) scale(1.1);
}
2020-05-24 04:38:24 +05:30
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.appleActive & {
2021-03-26 08:49:04 +05:30
transform: translateX(0)!important; // override dir='rtl'
inset-inline-start: 0;
2020-05-24 04:38:24 +05:30
}
2020-05-24 04:38:24 +05:30
.androidActive &,
.windowsActive & {
transform: translateX($translateX) scale(0);
opacity: 0;
2021-03-26 08:49:04 +05:30
html[dir='rtl'] & {
transform: translateX(-$translateX) scale(0);
}
2020-05-24 04:38:24 +05:30
}
}
2020-05-24 04:38:24 +05:30
.windowsTile {
$translateX: 230px;
$translateX: -100%;
2020-05-24 04:38:24 +05:30
transform: translateX($translateX) scale(1);
2021-03-26 08:49:04 +05:30
inset-inline-start: 100%;
html[dir='rtl'] & {
transform: translateX(-$translateX) scale(1);
}
2020-05-24 04:38:24 +05:30
&:hover {
transform: translateX($translateX) scale(1.1);
2021-03-26 08:49:04 +05:30
html[dir='rtl'] & {
transform: translateX(-$translateX) scale(1.1);
}
2020-05-24 04:38:24 +05:30
}
2020-05-24 04:38:24 +05:30
.windowsActive & {
2021-03-26 08:49:04 +05:30
transform: translateX(0)!important; // override dir='rtl'
inset-inline-start: 0;
2020-05-24 04:38:24 +05:30
}
2020-05-24 04:38:24 +05:30
.appleActive &,
.androidActive & {
transform: translateX($translateX) scale(0);
opacity: 0;
2021-03-26 08:49:04 +05:30
html[dir='rtl'] & {
transform: translateX(-$translateX) scale(0);
}
2020-05-24 04:38:24 +05:30
}
}
2020-05-24 04:38:24 +05:30
.osInstructionContainer {
opacity: 0;
transition: 0.4s;
2020-05-24 04:38:24 +05:30
.instructionActive & {
opacity: 1;
}
}
.osInstruction {
box-sizing: border-box;
position: relative;
z-index: 1;
margin: 15px;
2021-03-26 08:49:04 +05:30
margin-inline-start: 30%;
padding-inline-start: 15px;
2020-05-24 04:38:24 +05:30
padding-bottom: 15px;
min-height: $boxHeight;
2017-07-22 21:27:38 +05:30
}
}
@media screen and (max-width: 420px) {
2020-05-24 04:38:24 +05:30
.instructionContainer {
position: relative;
overflow: hidden;
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.osList {
2017-07-22 21:27:38 +05:30
}
2020-05-24 04:38:24 +05:30
.osTile {
position: relative;
display: flex;
align-items: center;
height: 48px;
2020-05-24 04:38:24 +05:30
background: #fff;
$borderColor: #eee;
border-top: 1px solid $borderColor;
border-bottom: 1px solid transparent;
cursor: pointer;
2020-05-24 04:38:24 +05:30
transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1); // easeOutCubic
2020-05-24 04:38:24 +05:30
&:last-of-type {
border-bottom-color: $borderColor;
}
2020-05-24 04:38:24 +05:30
.instructionActive & {
border-bottom-color: $borderColor;
}
2017-07-22 21:27:38 +05:30
}
2020-05-24 04:38:24 +05:30
.osLogo {
max-width: 30px;
}
2020-05-24 04:38:24 +05:30
.osName {
font-family: $font-family-title;
font-size: 16px;
2021-03-26 08:49:04 +05:30
margin-inline-start: 10px;
2020-05-24 04:38:24 +05:30
}
2020-05-24 04:38:24 +05:30
@mixin commonNonActiveTile() {
opacity: 0;
pointer-events: none;
2017-07-22 21:27:38 +05:30
}
2020-05-24 04:38:24 +05:30
.androidTile {
z-index: 3;
.appleActive & {
@include commonNonActiveTile;
transform: translateY(-50px);
}
.windowsActive & {
@include commonNonActiveTile;
transform: translateY(-100px);
}
2017-07-22 21:27:38 +05:30
}
2020-05-24 04:38:24 +05:30
.appleTile {
z-index: 2;
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.appleActive & {
transform: translateY(-50px);
}
.androidActive &,
.windowsActive & {
@include commonNonActiveTile;
transform: translateY(-100px);
}
}
2017-07-22 21:27:38 +05:30
2020-05-24 04:38:24 +05:30
.windowsTile {
z-index: 1;
.windowsActive & {
transform: translateY(-100px);
}
.androidActive &,
.appleActive & {
@include commonNonActiveTile;
transform: translateY(-100px);
}
}
2020-05-24 04:38:24 +05:30
.osInstructionContainer {
position: absolute;
top: -50px;
height: 100px;
opacity: 0;
transition: 0.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
}
2020-05-24 04:38:24 +05:30
.osInstruction {
padding-top: 10px;
}
2020-05-24 04:38:24 +05:30
.otherApps {
bottom: 8px;
}
2017-07-22 21:27:38 +05:30
}