accounts-frontend/packages/app/components/dev/apps/applicationsIndex.scss

269 lines
4.6 KiB
SCSS
Raw Normal View History

@import '~app/components/ui/fonts.scss';
@import '~app/components/ui/colors.scss';
.container {
2020-05-24 04:38:24 +05:30
max-width: 500px;
margin: 0 auto;
background: white;
border-bottom: 10px solid #ddd8ce;
2020-05-24 04:38:24 +05:30
@media (max-width: 540px) {
margin: 0 20px;
}
}
.welcomeContainer {
2020-05-24 04:38:24 +05:30
padding: 30px;
background: #f5f5f5;
text-align: center;
border-bottom: 1px solid #eeeeee;
}
.welcomeTitle {
2020-05-24 04:38:24 +05:30
font-size: 30px;
font-family: $font-family-title;
max-width: 245px;
margin: 0 auto 15px;
line-height: 1.2;
}
.welcomeTitleDelimiter {
2020-05-24 04:38:24 +05:30
width: 86px;
height: 3px;
background: $green;
margin: 0 auto 15px;
}
.welcomeParagraph {
2020-05-24 04:38:24 +05:30
color: #666666;
font-size: 14px;
margin-bottom: 15px;
line-height: 1.3;
2020-05-24 04:38:24 +05:30
&:last-of-type {
margin-bottom: 0;
}
}
.emptyState {
2020-05-24 04:38:24 +05:30
padding: 30px 30px 50px;
text-align: center;
}
.emptyStateIcon {
2020-05-24 04:38:24 +05:30
width: 120px;
height: 120px;
margin-bottom: 20px;
}
@mixin emptyStateAnimation($order) {
2020-05-24 04:38:24 +05:30
animation: slide-in-bottom 1s // Total animation time
0.2s + 0.2s * $order // Increase each next element delay
cubic-bezier(0.075, 0.82, 0.165, 1) // easeOutCirc
both;
}
.emptyStateText {
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
color: #666666;
font-size: 16px;
margin-bottom: 20px;
line-height: 20px;
}
.noAppsContainer {
2020-05-24 04:38:24 +05:30
visibility: hidden;
}
.noAppsAnimating {
2020-05-24 04:38:24 +05:30
visibility: visible;
.emptyStateText {
> div {
&:nth-child(1) {
@include emptyStateAnimation(0);
}
&:nth-child(2) {
@include emptyStateAnimation(1);
}
}
}
2020-05-24 04:38:24 +05:30
.emptyStateActionButton {
@include emptyStateAnimation(2);
}
}
@keyframes slide-in-bottom {
2020-05-24 04:38:24 +05:30
0% {
transform: translateY(50px);
opacity: 0;
}
2020-05-24 04:38:24 +05:30
100% {
transform: translateY(0);
opacity: 1;
}
}
.appsListTitleContainer {
2020-05-24 04:38:24 +05:30
display: flex;
align-items: center;
padding: 20px 30px;
border-bottom: 1px solid #eee;
}
.appsListTitle {
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
font-size: 24px;
flex-grow: 1;
}
.appsListAddNewAppBtn {
}
.appsListContainer {
2020-05-24 04:38:24 +05:30
margin-bottom: 30px;
}
.appItemContainer {
2020-05-24 04:38:24 +05:30
border-bottom: 1px solid #eee;
}
.appItemTile {
2020-05-24 04:38:24 +05:30
padding: 15px 30px;
display: flex;
align-items: center;
cursor: pointer;
transition: background-color 0.25s;
}
.appTileTitle {
2020-05-24 04:38:24 +05:30
flex-grow: 1;
}
.appName {
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
font-size: 24px;
}
.appStats {
2020-05-24 04:38:24 +05:30
color: #999;
font-size: 14px;
}
.appItemToggle {
}
.appItemToggleIcon {
2020-05-24 04:38:24 +05:30
composes: arrowRight from '~app/components/ui/icons.scss';
2020-05-24 04:38:24 +05:30
position: relative;
2021-03-26 08:49:04 +05:30
inset-inline-start: 0;
2020-05-24 04:38:24 +05:30
font-size: 28px;
color: #ebe8e1;
2020-05-24 04:38:24 +05:30
transition: 0.25s;
2020-05-24 04:38:24 +05:30
.appItemTile:hover & {
color: #777;
}
2020-05-24 04:38:24 +05:30
.appExpanded & {
color: #777;
2021-03-26 08:49:04 +05:30
transform: rotate(360deg)!important; // Prevent it from hover rotating
html[dir='rtl'] & {
transform: rotate(0)!important;
}
2020-05-24 04:38:24 +05:30
}
}
$appDetailsContainerRightLeftPadding: 30px;
.appDetailsContainer {
2020-05-24 04:38:24 +05:30
background: #f5f5f5;
border-top: 1px solid #eee;
padding: 5px $appDetailsContainerRightLeftPadding;
position: relative;
transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.appDetailsInfoField {
2020-05-24 04:38:24 +05:30
position: relative;
margin-bottom: 20px;
}
.editAppLink {
2020-05-24 04:38:24 +05:30
position: absolute;
top: 4px;
2021-03-26 08:49:04 +05:30
inset-inline-end: 0;
2020-05-24 04:38:24 +05:30
font-size: 12px;
color: #9a9a9a;
border-bottom: 0;
}
.pencilIcon {
2020-05-24 04:38:24 +05:30
composes: pencil from '~app/components/ui/icons.scss';
2020-05-24 04:38:24 +05:30
font-size: 14px;
position: relative;
bottom: 2px;
}
.appDetailsDescription {
2020-05-24 04:38:24 +05:30
font-size: 12px;
color: #9a9a9a;
line-height: 1.4;
margin-bottom: 20px;
}
.appActionsButtons {
}
.appActionButton {
2021-03-26 08:49:04 +05:30
margin-inline-end: 10px;
margin-bottom: 10px;
2020-05-24 04:38:24 +05:30
&:last-of-type {
2021-03-26 08:49:04 +05:30
margin-inline-end: 0;
2020-05-24 04:38:24 +05:30
}
}
2018-11-04 11:37:04 +05:30
.appActionContainer {
2020-05-24 04:38:24 +05:30
position: absolute;
2021-03-26 08:49:04 +05:30
width: calc(100% - #{$appDetailsContainerRightLeftPadding * 2});
2020-05-24 04:38:24 +05:30
top: 100%;
2021-03-26 08:49:04 +05:30
inset-inline-start: 0;
2020-05-24 04:38:24 +05:30
padding: 0 $appDetailsContainerRightLeftPadding;
background: #f5f5f5;
2018-11-04 11:37:04 +05:30
}
.appActionDescription {
2020-05-24 04:38:24 +05:30
composes: appDetailsDescription;
2020-05-24 04:38:24 +05:30
margin-top: 6px;
}
.continueActionButtonWrapper {
2020-05-24 04:38:24 +05:30
display: inline-block;
2021-03-26 08:49:04 +05:30
margin-inline-start: 10px;
}
.continueActionLink {
2020-05-24 04:38:24 +05:30
composes: textLink from '~app/index.scss';
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
font-size: 14px;
color: #666;
}
.performingAction {
2020-05-24 04:38:24 +05:30
font-family: $font-family-title;
font-size: 14px;
color: #666;
}