primevue-mirror/assets/styles/app/_config.scss

204 lines
4.3 KiB
SCSS
Raw Normal View History

2020-05-12 08:31:09 +00:00
.layout-config {
position: fixed;
padding: 0;
2020-07-01 19:35:12 +00:00
top: 0;
2020-05-12 08:31:09 +00:00
right: 0;
2020-07-01 19:35:12 +00:00
display: block;
2020-05-12 08:31:09 +00:00
width: 550px;
2022-02-23 11:42:11 +00:00
z-index: 1101;
2020-07-01 19:35:12 +00:00
height: 100%;
2020-07-04 13:23:25 +00:00
transition: transform .4s cubic-bezier(.05,.74,.2,.99);
transform: translateX(100%);
2020-05-12 08:31:09 +00:00
backface-visibility: hidden;
&.layout-config-active {
2020-07-04 13:23:25 +00:00
transform: translateX(0);
2020-05-12 08:31:09 +00:00
.layout-config-content-wrapper {
.layout-config-button {
i {
2020-06-27 22:43:07 +00:00
transform: rotate(0deg);
2020-05-12 08:31:09 +00:00
}
}
}
}
.layout-config-content-wrapper {
position: relative;
height: 100%;
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.24);
2020-06-17 19:21:22 +00:00
color: var(--text-color);
background-color: var(--surface-overlay);
2020-05-12 08:31:09 +00:00
.layout-config-button {
display: block;
position: absolute;
width: 52px;
height: 52px;
line-height: 52px;
2020-05-12 13:43:10 +00:00
background-color: var(--primary-color);
2020-05-12 08:31:09 +00:00
text-align: center;
2020-06-17 19:21:22 +00:00
color: var(--primary-color-text);
2020-07-01 19:35:12 +00:00
top: 270px;
2020-05-12 08:31:09 +00:00
left: -51px;
z-index: -1;
overflow: hidden;
cursor: pointer;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
2020-06-27 18:20:49 +00:00
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
2021-02-03 12:14:50 +00:00
animation-name: rubberBand;
animation-duration: 1s;
animation-iteration-count: 3;
animation-delay: 5s;
2020-06-27 22:43:07 +00:00
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
2020-05-12 08:31:09 +00:00
i {
font-size: 26px;
line-height: inherit;
cursor: pointer;
2020-06-27 22:43:07 +00:00
transform: rotate(360deg);
2020-05-12 08:31:09 +00:00
transition: transform 1s;
}
}
}
a {
2020-05-12 13:43:10 +00:00
color: $linkColor;
2020-06-18 09:17:14 +00:00
font-weight: 600;
&:hover {
text-decoration: underline;
}
2020-05-12 08:31:09 +00:00
}
.layout-config-content {
overflow: auto;
height: 100%;
2020-06-20 09:40:01 +00:00
padding: 2rem;
2020-05-12 08:31:09 +00:00
}
2020-06-19 09:41:05 +00:00
.config-scale {
display: flex;
align-items: center;
margin: 1rem 0 2rem 0;
.p-button {
margin-right: .5rem;
}
i {
margin-right: .5rem;
font-size: .75rem;
color: var(--text-color-secondary);
&.scale-active {
font-size: 1.25rem;
2021-11-15 07:22:31 +00:00
color: var(--primary-color);
2020-06-19 09:41:05 +00:00
}
}
}
2020-05-12 08:31:09 +00:00
.layout-config-close {
position: absolute;
width: 25px;
height: 25px;
line-height: 25px;
text-align: center;
right: 20px;
top: 20px;
z-index: 999;
2020-05-12 13:43:10 +00:00
background-color: var(--primary-color);
2020-05-12 08:31:09 +00:00
border-radius: 50%;
2020-05-12 13:43:10 +00:00
transition: background-color .2s, box-shadow .2s, transform .2s;
2020-05-12 08:31:09 +00:00
i {
2020-05-12 13:43:10 +00:00
color: var(--primary-color-text);
2020-05-12 08:31:09 +00:00
line-height: inherit;
2020-07-04 13:23:25 +00:00
font-size: 14px;
2020-05-12 08:31:09 +00:00
}
&:hover {
2020-05-12 13:43:10 +00:00
transform: scale(1.1);
2020-05-12 08:31:09 +00:00
}
&:focus {
outline: 0 none;
2020-05-14 09:00:32 +00:00
box-shadow: 0 0 0 0.2rem $focusBorderColor;
2020-05-12 08:31:09 +00:00
}
}
2022-01-13 11:03:59 +00:00
.grid > div {
2020-06-19 09:41:05 +00:00
padding: 1rem;
2020-05-12 08:31:09 +00:00
text-align: center;
span {
display: block;
}
2020-05-14 08:37:01 +00:00
2020-06-19 09:41:05 +00:00
button {
position: relative;
display: inline-flex;
justify-content: center;
2020-05-14 08:37:01 +00:00
}
}
2020-05-12 08:31:09 +00:00
.free-themes {
img {
width: 50px;
border-radius: 4px;
2020-06-20 09:40:01 +00:00
transition: transform .2s;
&:hover {
transform: scale(1.1);
}
2020-05-12 08:31:09 +00:00
}
span {
2020-06-19 09:41:05 +00:00
font-size: .875rem;
margin-top: .25rem;
2020-05-12 08:31:09 +00:00
}
}
.premium-themes {
img {
width: 100%;
2020-06-20 09:40:01 +00:00
transition: transform .2s;
&:hover {
transform: scale(1.1);
}
2020-05-12 08:31:09 +00:00
}
}
2021-02-03 12:14:50 +00:00
}
@keyframes rubberBand {
from {
transform: scale3d(1, 1, 1);
}
30% {
transform: scale3d(1.25, 0.75, 1);
}
40% {
transform: scale3d(0.75, 1.25, 1);
}
50% {
transform: scale3d(1.15, 0.85, 1);
}
65% {
transform: scale3d(.95, 1.05, 1);
}
75% {
transform: scale3d(1.05, .95, 1);
}
to {
transform: scale3d(1, 1, 1);
}
}