woocommerce-paypal-payments/modules/ppcp-settings/resources/css/components/reusable-components/_navigation.scss

113 lines
2 KiB
SCSS
Raw Normal View History

2024-11-08 14:02:05 +04:00
.ppcp-r-navigation-container {
position: sticky;
top: var(--wp-admin--admin-bar--height);
z-index: 10;
padding: 10px 48px;
2024-11-08 13:03:39 +04:00
margin: 0 -20px 48px -20px;
2024-10-24 06:35:48 +02:00
box-shadow: 0 -1px 0 0 $color-gray-300 inset;
background: var(--ppcp-color-app-bg);
transition: box-shadow 0.3s;
--wp-components-color-accent: #{$color-blueberry};
--color-text: #{$color-gray-900};
--color-disabled: #CCC;
2024-11-08 14:02:05 +04:00
.ppcp-r-navigation {
display: flex;
justify-content: space-between;
align-items: center;
height: 40px;
.components-button {
@include font(13, 20, 400);
2024-10-24 06:35:48 +02:00
&.is-primary {
background-color: var(--wp-components-color-accent);
2024-12-02 18:44:49 +01:00
padding: 10px 16px;
justify-content: center;
margin: 0 0 0 12px;
2024-12-02 18:44:49 +01:00
border-radius: 2px;
&:disabled {
background-color: var(--color-disabled);
}
2024-11-08 14:02:05 +04:00
}
2024-10-24 06:35:48 +02:00
&.is-link {
color: var(--wp-components-color-accent);
text-decoration: none;
&:disabled {
color: var(--color-disabled);
}
2024-11-08 14:02:05 +04:00
}
&.is-title {
@include font(16, 24, 600);
color: var(--color-text);
2024-12-02 17:43:30 +01:00
2025-01-23 19:54:17 +01:00
.ppcp--nav-title {
margin-left: 18px;
}
2025-01-22 15:08:14 +01:00
.ppcp--big {
@include font(20, 28, 400);
}
2024-11-08 14:02:05 +04:00
}
2024-10-24 06:35:48 +02:00
}
2024-11-08 13:03:39 +04:00
&--left {
align-items: center;
display: inline-flex;
2024-11-08 14:02:05 +04:00
}
2024-11-08 13:03:39 +04:00
2024-12-02 18:44:49 +01:00
&--right {
.is-link {
padding: 10px 16px;
}
}
2024-11-08 14:02:05 +04:00
&--progress-bar {
position: absolute;
2024-12-02 17:43:30 +01:00
bottom: 0;
2024-11-08 14:02:05 +04:00
left: 0;
background-color: var(--wp-components-color-accent);
2024-11-08 14:02:05 +04:00
height: 4px;
2024-12-02 17:43:30 +01:00
transition: width 0.3s;
2024-11-08 14:02:05 +04:00
}
2024-11-08 13:28:58 +04:00
}
2025-01-22 15:08:14 +01:00
&.ppcp--is-scrolled {
2024-12-04 12:59:50 +01:00
box-shadow: 0 -1px 0 0 $color-gray-300 inset, 0 8px 8px 0 rgba(85, 93, 102, .3);
}
2024-12-04 12:59:50 +01:00
@media screen and (max-width: 782px) {
padding: 10px 12px;
2024-12-02 17:43:30 +01:00
2024-11-08 14:02:05 +04:00
.ppcp-r-navigation {
row-gap: 8px;
2024-12-04 12:59:50 +01:00
white-space: nowrap;
2025-01-22 15:08:14 +01:00
.ppcp-r-navigation--right {
2024-12-04 12:59:50 +01:00
position: absolute;
right: 10px;
z-index: 10;
background: var(--ppcp-color-app-bg);
box-shadow: -5px 0 8px var(--ppcp-color-app-bg);
}
2024-11-08 13:28:58 +04:00
2025-01-22 15:08:14 +01:00
.ppcp-r-navigation--progress-bar {
2024-12-04 12:59:50 +01:00
height: 2px;
}
.components-button.is-title {
2025-01-22 15:08:14 +01:00
.ppcp--title {
2024-12-04 12:59:50 +01:00
margin-left: 4px;
}
2024-11-08 14:02:05 +04:00
}
2024-11-08 13:28:58 +04:00
}
2024-11-08 13:03:39 +04:00
}
2024-10-24 06:35:48 +02:00
}