mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 22:05:23 +02:00
feat(ui): Rebranding - r8s-374 (#840)
This commit is contained in:
parent
cf5990ccba
commit
c6ee9a5a52
41 changed files with 821 additions and 342 deletions
|
@ -29,43 +29,79 @@ fieldset[disabled] .btn {
|
|||
}
|
||||
|
||||
.btn.btn-primary {
|
||||
@apply border-blue-8 bg-blue-8 text-white;
|
||||
@apply hover:border-blue-9 hover:bg-blue-9 hover:text-white;
|
||||
@apply th-dark:hover:border-blue-7 th-dark:hover:bg-blue-7;
|
||||
@apply border-graphite-700 bg-graphite-700 text-mist-100;
|
||||
@apply hover:border-graphite-700/90 hover:bg-graphite-700/90 hover:text-mist-100;
|
||||
@apply focus:border-blue-5 focus:shadow-graphite-700/80 focus:text-mist-100;
|
||||
|
||||
@apply th-dark:border-mist-100 th-dark:bg-mist-100 th-dark:text-graphite-700;
|
||||
@apply th-dark:hover:border-mist-100/90 th-dark:hover:bg-mist-100/90 th-dark:hover:text-graphite-700;
|
||||
@apply th-dark:focus:border-blue-5 th-dark:focus:shadow-white/80 th-dark:focus:text-graphite-700;
|
||||
|
||||
@apply th-highcontrast:border-mist-100 th-highcontrast:bg-mist-100 th-highcontrast:text-graphite-700;
|
||||
@apply th-highcontrast:hover:border-mist-100/90 th-highcontrast:hover:bg-mist-100/90 th-highcontrast:hover:text-graphite-700;
|
||||
@apply th-highcontrast:focus:border-blue-5 th-highcontrast:focus:shadow-white/80 th-highcontrast:focus:text-graphite-700;
|
||||
}
|
||||
|
||||
/* Sidebar background is always dark, so we need to override the primary button styles */
|
||||
.btn.btn-primary.sidebar {
|
||||
@apply border-mist-100 bg-mist-100 text-graphite-700;
|
||||
@apply hover:border-mist-100/90 hover:bg-mist-100/90 hover:text-graphite-700;
|
||||
@apply focus:border-blue-5 focus:shadow-white/80 focus:text-graphite-700;
|
||||
}
|
||||
|
||||
.btn.btn-primary:active,
|
||||
.btn.btn-primary.active,
|
||||
.open > .dropdown-toggle.btn-primary {
|
||||
@apply border-blue-5 bg-blue-9;
|
||||
@apply border-graphite-700/80 bg-graphite-700 text-mist-100;
|
||||
@apply th-dark:border-white/80 th-dark:bg-mist-100 th-dark:text-graphite-700;
|
||||
@apply th-highcontrast:border-white/80 th-highcontrast:bg-mist-100 th-highcontrast:text-graphite-700;
|
||||
}
|
||||
|
||||
.nav-pills > li.active > a,
|
||||
.nav-pills > li.active > a:hover,
|
||||
.nav-pills > li.active > a:focus {
|
||||
@apply bg-blue-8;
|
||||
@apply bg-graphite-700 text-mist-100;
|
||||
@apply th-dark:bg-mist-100 th-dark:text-graphite-700;
|
||||
@apply th-highcontrast:bg-mist-100 th-highcontrast:text-graphite-700;
|
||||
}
|
||||
|
||||
/* Button Secondary */
|
||||
.btn.btn-secondary {
|
||||
@apply border border-solid;
|
||||
|
||||
@apply border-blue-8 bg-blue-2 text-blue-9;
|
||||
@apply hover:bg-blue-3;
|
||||
@apply border-graphite-700 bg-mist-100 text-graphite-700;
|
||||
@apply hover:border-graphite-700 hover:bg-graphite-700/10 hover:text-graphite-700;
|
||||
@apply focus:border-blue-5 focus:shadow-graphite-700/20 focus:text-graphite-700;
|
||||
|
||||
@apply th-dark:border-blue-7 th-dark:bg-gray-10 th-dark:text-blue-3;
|
||||
@apply th-dark:hover:bg-blue-11;
|
||||
@apply th-dark:border-mist-100 th-dark:bg-graphite-700 th-dark:text-mist-100;
|
||||
@apply th-dark:hover:border-mist-100 th-dark:hover:bg-mist-100/20 th-dark:hover:text-mist-100;
|
||||
@apply th-dark:focus:border-blue-5 th-dark:focus:shadow-white/80 th-dark:focus:text-mist-100;
|
||||
|
||||
@apply th-highcontrast:border-mist-100 th-highcontrast:bg-graphite-700 th-highcontrast:text-mist-100;
|
||||
@apply th-highcontrast:hover:border-mist-100 th-highcontrast:hover:bg-mist-100/20 th-highcontrast:hover:text-mist-100;
|
||||
@apply th-highcontrast:focus:border-blue-5 th-highcontrast:focus:shadow-white/80 th-highcontrast:focus:text-mist-100;
|
||||
}
|
||||
|
||||
.btn.btn-secondary:active,
|
||||
.btn.btn-secondary.active,
|
||||
.open > .dropdown-toggle.btn-secondary {
|
||||
@apply border-graphite-700 bg-graphite-700/10 text-graphite-700;
|
||||
@apply th-dark:border-mist-100 th-dark:bg-mist-100/20 th-dark:text-mist-100;
|
||||
@apply th-highcontrast:border-mist-100 th-highcontrast:bg-mist-100/20 th-highcontrast:text-mist-100;
|
||||
}
|
||||
|
||||
.btn.btn-danger {
|
||||
@apply border-error-8 bg-error-8;
|
||||
@apply hover:border-error-7 hover:bg-error-7 hover:text-white;
|
||||
@apply focus:border-blue-5 focus:shadow-error-8/20 focus:text-white;
|
||||
@apply th-dark:focus:border-blue-5 th-dark:focus:shadow-white/80 th-dark:focus:text-white;
|
||||
@apply th-highcontrast:focus:border-blue-5 th-highcontrast:focus:shadow-white/80 th-highcontrast:focus:text-white;
|
||||
}
|
||||
|
||||
.btn.btn-danger:active,
|
||||
.btn.btn-danger.active,
|
||||
.open > .dropdown-toggle.btn-danger {
|
||||
@apply border-blue-5 bg-error-8 text-white;
|
||||
@apply border-error-5 bg-error-8 text-white;
|
||||
}
|
||||
|
||||
.btn.btn-dangerlight {
|
||||
|
@ -74,6 +110,10 @@ fieldset[disabled] .btn {
|
|||
@apply hover:bg-error-2 th-dark:hover:bg-error-11;
|
||||
@apply border-error-5 th-highcontrast:border-error-7 th-dark:border-error-7;
|
||||
@apply border border-solid;
|
||||
|
||||
@apply focus:border-blue-5 focus:shadow-error-8/20 focus:text-error-9;
|
||||
@apply th-dark:focus:border-blue-5 th-dark:focus:shadow-white/80 th-dark:focus:text-white;
|
||||
@apply th-highcontrast:focus:border-blue-5 th-highcontrast:focus:shadow-white/80;
|
||||
}
|
||||
.btn.btn-icon.btn-dangerlight {
|
||||
@apply hover:text-error-11 th-dark:hover:text-error-7;
|
||||
|
@ -90,15 +130,18 @@ fieldset[disabled] .btn {
|
|||
/* secondary-grey */
|
||||
.btn.btn-default,
|
||||
.btn.btn-light {
|
||||
@apply border-gray-5 bg-white text-gray-7;
|
||||
@apply hover:border-gray-5 hover:bg-gray-3 hover:text-gray-9;
|
||||
@apply border-gray-5 bg-white text-gray-8;
|
||||
@apply hover:border-gray-5 hover:bg-gray-3 hover:text-gray-10;
|
||||
@apply focus:border-blue-5 focus:shadow-graphite-700/20 focus:text-gray-8;
|
||||
|
||||
/* dark mode */
|
||||
@apply th-dark:border-gray-warm-7 th-dark:bg-gray-iron-10 th-dark:text-gray-warm-4;
|
||||
@apply th-dark:hover:border-gray-6 th-dark:hover:bg-gray-iron-9 th-dark:hover:text-gray-warm-4;
|
||||
@apply th-dark:focus:border-blue-5 th-dark:focus:shadow-white/80 th-dark:focus:text-gray-warm-4;
|
||||
|
||||
@apply th-highcontrast:border-gray-2 th-highcontrast:bg-black th-highcontrast:text-white;
|
||||
@apply th-highcontrast:hover:border-gray-6 th-highcontrast:hover:bg-gray-9 th-highcontrast:hover:text-gray-warm-4;
|
||||
@apply th-highcontrast:focus:border-blue-5 th-highcontrast:focus:shadow-white/80 th-highcontrast:focus:text-white;
|
||||
}
|
||||
|
||||
.btn.btn-light:active,
|
||||
|
@ -119,42 +162,17 @@ fieldset[disabled] .btn {
|
|||
|
||||
.input-group-btn .btn.active,
|
||||
.btn-group .btn.active {
|
||||
@apply border-blue-5 bg-blue-2 text-blue-10;
|
||||
@apply th-dark:border-blue-9 th-dark:bg-blue-11 th-dark:text-blue-2;
|
||||
}
|
||||
|
||||
/* focus */
|
||||
|
||||
.btn.btn-primary:focus,
|
||||
.btn.btn-secondary:focus,
|
||||
.btn.btn-light:focus {
|
||||
@apply border-blue-5;
|
||||
}
|
||||
|
||||
.btn.btn-danger:focus,
|
||||
.btn.btn-dangerlight:focus {
|
||||
@apply border-blue-6;
|
||||
}
|
||||
|
||||
.btn.btn-primary:focus,
|
||||
.btn.btn-secondary:focus,
|
||||
.btn.btn-light:focus,
|
||||
.btn.btn-danger:focus,
|
||||
.btn.btn-dangerlight:focus {
|
||||
--btn-focus-color: var(--ui-blue-3);
|
||||
box-shadow: 0px 0px 0px 4px var(--btn-focus-color);
|
||||
@apply border-graphite-700/80 bg-graphite-700 text-mist-100;
|
||||
@apply th-dark:border-white/80 th-dark:bg-mist-100 th-dark:text-graphite-700;
|
||||
@apply th-highcontrast:border-white/80 th-highcontrast:bg-mist-100 th-highcontrast:text-graphite-700;
|
||||
}
|
||||
|
||||
.btn.btn-icon:focus {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
[theme='dark'] .btn.btn-primary:focus,
|
||||
[theme='dark'] .btn.btn-secondary:focus,
|
||||
[theme='dark'] .btn.btn-light:focus,
|
||||
[theme='dark'] .btn.btn-danger:focus,
|
||||
[theme='dark'] .btn.btn-dangerlight:focus {
|
||||
--btn-focus-color: var(--ui-blue-11);
|
||||
.btn:focus {
|
||||
box-shadow: 0px 0px 0px 2px var(--tw-shadow-color);
|
||||
}
|
||||
|
||||
a.no-link,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue