fix:#53 linted formatted frontend files

This commit is contained in:
Elmar Kresse
2024-09-07 10:09:30 +02:00
parent a9234cbb16
commit fcbe5c0c55
115 changed files with 14849 additions and 11152 deletions

View File

@@ -3,15 +3,14 @@
@each $name, $color in $colors {
@for $i from 0 through 5 {
@if ($i == 0) {
--#{$name}-50:#{tint($color, (5 - $i) * 19%)};
}
@else {
--#{$name}-#{$i * 100}:#{tint($color, (5 - $i) * 19%)};
--#{$name}-50: #{tint($color, (5 - $i) * 19%)};
} @else {
--#{$name}-#{$i * 100}: #{tint($color, (5 - $i) * 19%)};
}
}
@for $i from 1 through 4 {
--#{$name}-#{($i + 5) * 100}:#{shade($color, $i * 15%)};
--#{$name}-#{($i + 5) * 100}: #{shade($color, $i * 15%)};
}
}
}

View File

@@ -1,5 +1,6 @@
// core
.p-component, .p-component * {
.p-component,
.p-component * {
box-sizing: border-box;
}
@@ -17,7 +18,8 @@
list-style: none;
}
.p-disabled, .p-disabled * {
.p-disabled,
.p-disabled * {
cursor: default;
pointer-events: none;
user-select: none;
@@ -66,7 +68,9 @@
.p-connected-overlay {
opacity: 0;
transform: scaleY(0.8);
transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);
transition:
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-connected-overlay-visible {
@@ -77,7 +81,7 @@
.p-connected-overlay-hidden {
opacity: 0;
transform: scaleY(1);
transition: opacity .1s linear;
transition: opacity 0.1s linear;
}
/* Vue based overlay animations */
@@ -91,11 +95,13 @@
}
.p-connected-overlay-enter-active {
transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);
transition:
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-connected-overlay-leave-active {
transition: opacity .1s linear;
transition: opacity 0.1s linear;
}
/* Toggleable Content */
@@ -136,7 +142,8 @@
transition-duration: $transitionDuration;
}
.p-disabled, .p-component:disabled {
.p-disabled,
.p-component:disabled {
opacity: $disabledOpacity;
}

View File

@@ -79,7 +79,8 @@
color: $menuitemTextActiveColor;
}
.p-menuitem-icon, .p-submenu-icon {
.p-menuitem-icon,
.p-submenu-icon {
color: $menuitemIconActiveColor;
}
}
@@ -103,7 +104,8 @@
color: $menuitemTextHoverColor;
}
.p-menuitem-icon, .p-submenu-icon {
.p-menuitem-icon,
.p-submenu-icon {
color: $menuitemTextHoverColor;
}
}
@@ -117,7 +119,8 @@
color: $menuitemTextHoverColor;
}
.p-menuitem-icon, .p-submenu-icon {
.p-menuitem-icon,
.p-submenu-icon {
color: $menuitemIconHoverColor;
}
}
@@ -135,7 +138,8 @@
color: $menuitemTextHoverColor;
}
.p-menuitem-icon, .p-submenu-icon {
.p-menuitem-icon,
.p-submenu-icon {
color: $menuitemIconHoverColor;
}
}
@@ -181,7 +185,8 @@
color: $horizontalMenuRootMenuitemTextHoverColor;
}
.p-menuitem-icon, .p-submenu-icon {
.p-menuitem-icon,
.p-submenu-icon {
color: $horizontalMenuRootMenuitemIconHoverColor;
}
}
@@ -192,16 +197,16 @@
@mixin placeholder {
::-webkit-input-placeholder {
@content
@content;
}
:-moz-placeholder {
@content
@content;
}
::-moz-placeholder {
@content
@content;
}
:-ms-input-placeholder {
@content
@content;
}
}
@@ -220,7 +225,6 @@
.p-menuitem-link {
padding-left: $val * ($index + 1);
}
}
@if $index < $length {
@include nested-submenu-indents($val, $index + 2, $length);

View File

@@ -44,7 +44,8 @@
margin: 0;
}
.p-button-group .p-button:not(:last-child), .p-button-group .p-button:not(:last-child):hover {
.p-button-group .p-button:not(:last-child),
.p-button-group .p-button:not(:last-child):hover {
border-right: 0 none;
}
@@ -258,7 +259,9 @@
}
}
.p-button.p-button-secondary, .p-button-group.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button {
.p-button.p-button-secondary,
.p-button-group.p-button-secondary > .p-button,
.p-splitbutton.p-button-secondary > .p-button {
color: $secondaryButtonTextColor;
background: $secondaryButtonBg;
border: $secondaryButtonBorder;
@@ -316,7 +319,9 @@
}
}
.p-button.p-button-info, .p-button-group.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button {
.p-button.p-button-info,
.p-button-group.p-button-info > .p-button,
.p-splitbutton.p-button-info > .p-button {
color: $infoButtonTextColor;
background: $infoButtonBg;
border: $infoButtonBorder;
@@ -374,7 +379,9 @@
}
}
.p-button.p-button-success, .p-button-group.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button {
.p-button.p-button-success,
.p-button-group.p-button-success > .p-button,
.p-splitbutton.p-button-success > .p-button {
color: $successButtonTextColor;
background: $successButtonBg;
border: $successButtonBorder;
@@ -432,7 +439,9 @@
}
}
.p-button.p-button-warning, .p-button-group.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button {
.p-button.p-button-warning,
.p-button-group.p-button-warning > .p-button,
.p-splitbutton.p-button-warning > .p-button {
color: $warningButtonTextColor;
background: $warningButtonBg;
border: $warningButtonBorder;
@@ -490,7 +499,9 @@
}
}
.p-button.p-button-help, .p-button-group.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button {
.p-button.p-button-help,
.p-button-group.p-button-help > .p-button,
.p-splitbutton.p-button-help > .p-button {
color: $helpButtonTextColor;
background: $helpButtonBg;
border: $helpButtonBorder;
@@ -548,7 +559,9 @@
}
}
.p-button.p-button-danger, .p-button-group.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button {
.p-button.p-button-danger,
.p-button-group.p-button-danger > .p-button,
.p-splitbutton.p-button-danger > .p-button {
color: $dangerButtonTextColor;
background: $dangerButtonBg;
border: $dangerButtonBorder;
@@ -607,7 +620,9 @@
}
@if variable-exists(contrastButtonTextColor) {
.p-button.p-button-contrast, .p-button-group.p-button-contrast > .p-button, .p-splitbutton.p-button-contrast > .p-button {
.p-button.p-button-contrast,
.p-button-group.p-button-contrast > .p-button,
.p-splitbutton.p-button-contrast > .p-button {
color: $contrastButtonTextColor;
background: $contrastButtonBg;
border: $contrastButtonBorder;

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
// core
.p-speeddial {
@@ -25,7 +25,9 @@
.p-speeddial-item {
transform: scale(0);
opacity: 0;
transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s;
transition:
transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
opacity 0.8s;
will-change: transform;
}

View File

@@ -7,7 +7,8 @@
.p-splitbutton .p-splitbutton-defaultbutton,
.p-splitbutton.p-button-rounded > .p-splitbutton-defaultbutton.p-button,
.p-splitbutton.p-button-outlined > .p-splitbutton-defaultbutton.p-button,
.p-splitbutton.p-button-outlined > .p-splitbutton-defaultbutton.p-button-outlined.p-button:hover {
.p-splitbutton.p-button-outlined
> .p-splitbutton-defaultbutton.p-button-outlined.p-button:hover {
flex: 1 1 auto;
border-top-right-radius: 0;
border-bottom-right-radius: 0;

View File

@@ -84,12 +84,19 @@
white-space: nowrap;
}
.p-datatable-resizable-table > .p-datatable-thead > tr > th.p-resizable-column:not(.p-frozen-column) {
.p-datatable-resizable-table
> .p-datatable-thead
> tr
> th.p-resizable-column:not(.p-frozen-column) {
background-clip: padding-box;
position: relative;
}
.p-datatable-resizable-table-fit > .p-datatable-thead > tr > th.p-resizable-column:last-child .p-column-resizer {
.p-datatable-resizable-table-fit
> .p-datatable-thead
> tr
> th.p-resizable-column:last-child
.p-column-resizer {
display: none;
}
@@ -399,7 +406,10 @@
}
&.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table,
&.p-datatable-scrollable > .p-datatable-wrapper > .p-virtualscroller > .p-datatable-table {
&.p-datatable-scrollable
> .p-datatable-wrapper
> .p-virtualscroller
> .p-datatable-table {
> .p-datatable-thead,
> .p-datatable-tfoot {
background-color: $tableHeaderCellBg;

View File

@@ -36,7 +36,6 @@
&:focus-visible {
@include focused();
}
}
.p-column-filter-clear-button {

View File

@@ -80,7 +80,9 @@
border: $inputListItemBorder;
color: $inputListItemTextColor;
background: $inputListItemBg;
transition: transform $transitionDuration, $listItemTransition;
transition:
transform $transitionDuration,
$listItemTransition;
&:first-child {
margin-top: 0;

View File

@@ -76,7 +76,9 @@
border: $inputListItemBorder;
color: $inputListItemTextColor;
background: $inputListItemBg;
transition: transform $transitionDuration, $listItemTransition;
transition:
transform $transitionDuration,
$listItemTransition;
&:first-child {
margin-top: 0;

View File

@@ -29,19 +29,27 @@
flex-direction: row-reverse;
}
.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-opposite {
.p-timeline-vertical.p-timeline-alternate
.p-timeline-event:nth-child(odd)
.p-timeline-event-opposite {
text-align: right;
}
.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-content {
.p-timeline-vertical.p-timeline-alternate
.p-timeline-event:nth-child(odd)
.p-timeline-event-content {
text-align: left;
}
.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-opposite {
.p-timeline-vertical.p-timeline-alternate
.p-timeline-event:nth-child(even)
.p-timeline-event-opposite {
text-align: left;
}
.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-content {
.p-timeline-vertical.p-timeline-alternate
.p-timeline-event:nth-child(even)
.p-timeline-event-content {
text-align: right;
}
@@ -146,6 +154,3 @@
}
}
}

View File

@@ -150,7 +150,14 @@
.p-treetable-scrollable-both .p-treetable-thead > tr > th,
.p-treetable-scrollable-both .p-treetable-tbody > tr > td,
.p-treetable-scrollable-both .p-treetable-tfoot > tr > td,
.p-treetable-scrollable-horizontal .p-treetable-thead > tr > th .p-treetable-scrollable-horizontal .p-treetable-tbody > tr > td,
.p-treetable-scrollable-horizontal
.p-treetable-thead
> tr
> th
.p-treetable-scrollable-horizontal
.p-treetable-tbody
> tr
> td,
.p-treetable-scrollable-horizontal .p-treetable-tfoot > tr > td {
flex: 0 0 auto;
}
@@ -299,7 +306,6 @@
&:hover {
color: $highlightTextColor;
}
}
}
}

View File

@@ -20,8 +20,8 @@
flex-wrap: wrap;
}
.p-fileupload > input[type='file'],
.p-fileupload-basic input[type='file'] {
.p-fileupload > input[type="file"],
.p-fileupload-basic input[type="file"] {
display: none;
}
@@ -101,7 +101,7 @@
}
.p-fileupload-row {
>div {
> div {
padding: $tableBodyCellPadding;
}
}

View File

@@ -1,10 +1,20 @@
// core
.p-colorpicker-panel .p-colorpicker-color {
background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)
background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%),
linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%);
}
.p-colorpicker-panel .p-colorpicker-hue {
background: linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)
background: linear-gradient(
0deg,
red 0,
#ff0 17%,
#0f0 33%,
#0ff 50%,
#00f 67%,
#f0f 83%,
red
);
}
// theme

View File

@@ -48,8 +48,8 @@
.ql-picker-options {
background: $inputOverlayBg;
border:$inputOverlayBorder;
box-shadow:$inputOverlayShadow;
border: $inputOverlayBorder;
box-shadow: $inputOverlayShadow;
border-radius: $borderRadius;
padding: $inputListPadding;

View File

@@ -8,7 +8,7 @@
position: absolute;
pointer-events: none;
top: 50%;
margin-top: -.5rem;
margin-top: -0.5rem;
transition-property: all;
transition-timing-function: ease;
line-height: 1;
@@ -25,7 +25,7 @@
.p-float-label:has(textarea.p-filled) label,
.p-float-label:has(.p-inputwrapper-focus) label,
.p-float-label:has(.p-inputwrapper-filled) label {
top: -.75rem;
top: -0.75rem;
font-size: 12px;
}

View File

@@ -6,5 +6,5 @@
.p-icon-field > .p-input-icon {
position: absolute;
top: 50%;
margin-top: -.5rem;
margin-top: -0.5rem;
}

View File

@@ -11,7 +11,9 @@
}
.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,
.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {
.p-inputnumber-buttons-horizontal
.p-button.p-inputnumber-button
.p-button-label {
display: none;
}
@@ -39,7 +41,9 @@
flex-direction: column;
}
.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {
.p-inputnumber-buttons-stacked
.p-inputnumber-button-group
.p-button.p-inputnumber-button {
flex: 1 1 auto;
}

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
// core
.p-inputswitch {
@@ -21,7 +21,7 @@
.p-inputswitch-slider:before {
position: absolute;
content: '';
content: "";
top: 50%;
}

View File

@@ -175,8 +175,7 @@
&.p-multiselect {
&.p-multiselect-chip {
.p-multiselect-label {
padding: math.div(nth($inputPadding, 1), 2)
nth($inputPadding, 2);
padding: math.div(nth($inputPadding, 1), 2) nth($inputPadding, 2);
}
}
}
@@ -275,4 +274,3 @@
}
}
}

View File

@@ -19,13 +19,13 @@
.p-radiobutton-icon {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transform: translateZ(0) scale(.1);
transform: translateZ(0) scale(0.1);
border-radius: 50%;
visibility: hidden;
}
.p-radiobutton.p-highlight .p-radiobutton-icon {
transform: translateZ(0) scale(1.0, 1.0);
transform: translateZ(0) scale(1, 1);
visibility: visible;
}

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
// core
.p-rating {

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
// core
.p-slider {

View File

@@ -116,8 +116,7 @@
&.p-treeselect {
&.p-treeselect-chip {
.p-treeselect-label {
padding: math.div(nth($inputPadding, 1), 2)
nth($inputPadding, 2);
padding: math.div(nth($inputPadding, 1), 2) nth($inputPadding, 2);
}
}
}

View File

@@ -82,12 +82,20 @@
flex-direction: column;
}
.p-megamenu-vertical:not(.p-megamenu-mobile) .p-megamenu-root-list > .p-menuitem-active > .p-megamenu-panel {
.p-megamenu-vertical:not(.p-megamenu-mobile)
.p-megamenu-root-list
> .p-menuitem-active
> .p-megamenu-panel {
left: 100%;
top: 0;
}
.p-megamenu-vertical .p-megamenu-root-list > .p-menuitem > .p-menuitem-content > .p-menuitem-link > .p-submenu-icon {
.p-megamenu-vertical
.p-megamenu-root-list
> .p-menuitem
> .p-menuitem-content
> .p-menuitem-link
> .p-submenu-icon {
margin-left: auto;
}
@@ -266,7 +274,6 @@
}
}
&.p-menuitem-active {
> .p-menuitem-content {
> .p-menuitem-link {

View File

@@ -54,7 +54,12 @@
top: 0;
}
.p-menubar .p-submenu-list .p-menuitem .p-menuitem-content .p-menuitem-link .p-submenu-icon {
.p-menubar
.p-submenu-list
.p-menuitem
.p-menuitem-content
.p-menuitem-link
.p-submenu-icon {
margin-left: auto;
}
@@ -187,7 +192,6 @@
}
}
&.p-menuitem-active {
> .p-menuitem-content {
> .p-menuitem-link {

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
// core
.p-steps {
@@ -99,7 +99,7 @@
}
&:before {
content:' ';
content: " ";
border-top: $divider;
width: 100%;
top: 50%;

View File

@@ -41,7 +41,10 @@
.p-message-leave-active {
overflow: hidden;
transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.15s;
transition:
max-height 0.3s cubic-bezier(0, 1, 0, 1),
opacity 0.3s,
margin 0.15s;
}
.p-message-leave-active .p-message-close {

View File

@@ -63,13 +63,23 @@
}
.p-toast-message-enter-active {
-webkit-transition: transform 0.3s, opacity 0.3s;
transition: transform 0.3s, opacity 0.3s;
-webkit-transition:
transform 0.3s,
opacity 0.3s;
transition:
transform 0.3s,
opacity 0.3s;
}
.p-toast-message-leave-active {
-webkit-transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s;
transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s;
-webkit-transition:
max-height 0.45s cubic-bezier(0, 1, 0, 1),
opacity 0.3s,
margin-bottom 0.3s;
transition:
max-height 0.45s cubic-bezier(0, 1, 0, 1),
opacity 0.3s,
margin-bottom 0.3s;
}
// theme

View File

@@ -3,7 +3,7 @@
display: inline-block;
border-radius: 10px;
text-align: center;
padding: 0 .5rem;
padding: 0 0.5rem;
}
.p-overlay-badge {
@@ -14,15 +14,15 @@
position: absolute;
top: 0;
right: 0;
transform: translate(50%,-50%);
transform: translate(50%, -50%);
transform-origin: 100% 0;
margin: 0;
}
.p-badge.p-badge-dot {
width: .5rem;
min-width: .5rem;
height: .5rem;
width: 0.5rem;
min-width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
padding: 0;
}

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
// core
.p-chip {

View File

@@ -25,27 +25,31 @@
}
.p-progressbar-indeterminate .p-progressbar-value::before {
content: '';
content: "";
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-webkit-animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
-webkit-animation: p-progressbar-indeterminate-anim 2.1s
cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
animation: p-progressbar-indeterminate-anim 2.1s
cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}
.p-progressbar-indeterminate .p-progressbar-value::after {
content: '';
content: "";
position: absolute;
background-color: inherit;
top: 0;
left: 0;
bottom: 0;
will-change: left, right;
-webkit-animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
-webkit-animation: p-progressbar-indeterminate-anim-short 2.1s
cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
animation: p-progressbar-indeterminate-anim-short 2.1s
cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
-webkit-animation-delay: 1.15s;
animation-delay: 1.15s;
}

View File

@@ -8,7 +8,7 @@
}
.p-progress-spinner::before {
content: '';
content: "";
display: block;
padding-top: 100%;
}
@@ -34,7 +34,9 @@
stroke-dasharray: 89, 200;
stroke-dashoffset: 0;
stroke: $progressSpinnerStrokeColor;
animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;
animation:
p-progress-spinner-dash 1.5s ease-in-out infinite,
p-progress-spinner-color 6s ease-in-out infinite;
stroke-linecap: round;
}

View File

@@ -4,7 +4,7 @@
}
.p-skeleton::after {
content: '';
content: "";
animation: p-skeleton-animation 1.2s infinite;
height: 100%;
left: 0;
@@ -38,6 +38,11 @@
border-radius: $borderRadius;
&:after {
background: linear-gradient(90deg, rgba(255, 255, 255, 0), $skeletonAnimationBg, rgba(255, 255, 255, 0));
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0),
$skeletonAnimationBg,
rgba(255, 255, 255, 0)
);
}
}

View File

@@ -52,12 +52,16 @@
transition: opacity 0.2s ease-in-out;
}
.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {
.p-galleria-item-nav-onhover
.p-galleria-item-wrapper:hover
.p-galleria-item-nav {
pointer-events: all;
opacity: 1;
}
.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {
.p-galleria-item-nav-onhover
.p-galleria-item-wrapper:hover
.p-galleria-item-nav.p-disabled {
pointer-events: none;
}
@@ -206,14 +210,16 @@
align-items: flex-start;
}
.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {
.p-galleria-indicator-onitem.p-galleria-indicators-right
.p-galleria-indicators {
right: 0;
top: 0;
height: 100%;
align-items: flex-end;
}
.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {
.p-galleria-indicator-onitem.p-galleria-indicators-bottom
.p-galleria-indicators {
bottom: 0;
left: 0;
width: 100%;

View File

@@ -22,7 +22,9 @@
}
.p-confirm-popup-enter-active {
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
transition:
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-confirm-popup-leave-active {
@@ -33,7 +35,7 @@
.p-confirm-popup:before {
bottom: 100%;
left: calc(var(--overlayArrowLeft, 0) + 1.25rem);
content: ' ';
content: " ";
height: 0;
width: 0;
position: absolute;
@@ -104,13 +106,15 @@
&:before {
border-style: solid;
@if (nth($overlayContentBorder, 2) == 'none') {
@if (nth($overlayContentBorder, 2) == "none") {
border-color: rgba($overlayContentBg, 0);
border-bottom-color: scale-color($overlayContentBg, $lightness: -5%);
}
@else {
} @else {
border-color: rgba(nth($overlayContentBorder, 3), 0);
border-bottom-color: scale-color(nth($overlayContentBorder, 3), $lightness: -5%);
border-bottom-color: scale-color(
nth($overlayContentBorder, 3),
$lightness: -5%
);
}
}
@@ -120,10 +124,9 @@
}
&:before {
@if (nth($overlayContentBorder, 2) == 'none') {
@if (nth($overlayContentBorder, 2) == "none") {
border-top-color: $overlayContentBg;
}
@else {
} @else {
border-top-color: nth($overlayContentBorder, 3);
}
}

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
// core
.p-overlaypanel {
@@ -29,7 +29,9 @@
}
.p-overlaypanel-enter-active {
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
transition:
transform 0.12s cubic-bezier(0, 0, 0.2, 1),
opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
}
.p-overlaypanel-leave-active {
@@ -40,7 +42,7 @@
.p-overlaypanel:before {
bottom: 100%;
left: calc(var(--overlayArrowLeft, 0) + 1.25rem);
content: ' ';
content: " ";
height: 0;
width: 0;
position: absolute;
@@ -109,13 +111,15 @@
&:before {
border-style: solid;
@if (nth($overlayContentBorder, 2) == 'none') {
@if (nth($overlayContentBorder, 2) == "none") {
border-color: rgba($overlayContentBg, 0);
border-bottom-color: scale-color($overlayContentBg, $lightness: -5%);
}
@else {
} @else {
border-color: rgba(nth($overlayContentBorder, 3), 0);
border-bottom-color: scale-color(nth($overlayContentBorder, 3), $lightness: -5%);
border-bottom-color: scale-color(
nth($overlayContentBorder, 3),
$lightness: -5%
);
}
}
@@ -125,10 +129,9 @@
}
&:before {
@if (nth($overlayContentBorder, 2) == 'none') {
@if (nth($overlayContentBorder, 2) == "none") {
border-top-color: $overlayContentBg;
}
@else {
} @else {
border-top-color: nth($overlayContentBorder, 3);
}
}

View File

@@ -1,19 +1,19 @@
// core
.p-tooltip {
position:absolute;
display:none;
padding: .25em .5rem;
position: absolute;
display: none;
padding: 0.25em 0.5rem;
max-width: 12.5rem;
}
.p-tooltip.p-tooltip-right,
.p-tooltip.p-tooltip-left {
padding: 0 .25rem;
padding: 0 0.25rem;
}
.p-tooltip.p-tooltip-top,
.p-tooltip.p-tooltip-bottom {
padding:.25em 0;
padding: 0.25em 0;
}
.p-tooltip .p-tooltip-text {
@@ -31,27 +31,27 @@
}
.p-tooltip-right .p-tooltip-arrow {
margin-top: -.25rem;
border-width: .25em .25em .25em 0;
margin-top: -0.25rem;
border-width: 0.25em 0.25em 0.25em 0;
}
.p-tooltip-left .p-tooltip-arrow {
margin-top: -.25rem;
border-width: .25em 0 .25em .25rem;
margin-top: -0.25rem;
border-width: 0.25em 0 0.25em 0.25rem;
}
.p-tooltip.p-tooltip-top {
padding: .25em 0;
padding: 0.25em 0;
}
.p-tooltip-top .p-tooltip-arrow {
margin-left: -.25rem;
border-width: .25em .25em 0;
margin-left: -0.25rem;
border-width: 0.25em 0.25em 0;
}
.p-tooltip-bottom .p-tooltip-arrow {
margin-left: -.25rem;
border-width: 0 .25em .25rem;
margin-left: -0.25rem;
border-width: 0 0.25em 0.25rem;
}
// theme

View File

@@ -12,7 +12,7 @@
top: 50%;
left: 0;
width: 100%;
content: '';
content: "";
}
.p-divider-content {
@@ -33,7 +33,7 @@
top: 0;
left: 50%;
height: 100%;
content: '';
content: "";
}
.p-divider {

View File

@@ -1,4 +1,4 @@
@use 'sass:math';
@use "sass:math";
//core
.p-stepper .p-stepper-nav {

View File

@@ -1,5 +1,8 @@
@mixin focused-ring($ring-color) {
box-shadow: 0 0 0 2px #1c2127, 0 0 0 4px $ring-color, 0 1px 2px 0 rgba(0, 0, 0, 0.0);
box-shadow:
0 0 0 2px #1c2127,
0 0 0 4px $ring-color,
0 1px 2px 0 rgba(0, 0, 0, 0);
}
@layer primevue {
@@ -9,13 +12,19 @@
.p-selectbutton > .p-button,
.p-togglebutton.p-button {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
.p-accordion {
.p-accordion-header {
.p-accordion-header-link {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
}
}
@@ -24,7 +33,10 @@
.p-tabview-nav {
li {
.p-tabview-nav-link {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
}
}
@@ -34,7 +46,10 @@
.p-tabmenu-nav {
.p-tabmenuitem {
.p-menuitem-link {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
}
}
@@ -54,31 +69,31 @@
.p-button {
&:focus {
@include focused-ring(rgba($buttonBg, .7));
@include focused-ring(rgba($buttonBg, 0.7));
}
&.p-button-secondary:enabled:focus {
@include focused-ring(rgba($secondaryButtonBg, .7));
@include focused-ring(rgba($secondaryButtonBg, 0.7));
}
&.p-button-success:enabled:focus {
@include focused-ring(rgba($successButtonBg, .7));
@include focused-ring(rgba($successButtonBg, 0.7));
}
&.p-button-info:enabled:focus {
@include focused-ring(rgba($infoButtonBg, .7));
@include focused-ring(rgba($infoButtonBg, 0.7));
}
&.p-button-warning:enabled:focus {
@include focused-ring(rgba($warningButtonBg, .7));
@include focused-ring(rgba($warningButtonBg, 0.7));
}
&.p-button-help:enabled:focus {
@include focused-ring(rgba($helpButtonBg, .7));
@include focused-ring(rgba($helpButtonBg, 0.7));
}
&.p-button-danger:enabled:focus {
@include focused-ring(rgba($dangerButtonBg, .7));
@include focused-ring(rgba($dangerButtonBg, 0.7));
}
}
@@ -98,7 +113,7 @@
.p-speeddial-item {
&.p-focus > .p-speeddial-action {
@include focused-ring(rgba($buttonBg, .7));
@include focused-ring(rgba($buttonBg, 0.7));
}
}
@@ -109,7 +124,7 @@
.p-message {
.p-message-close {
&:hover {
background: rgba(255,255,255,.1);
background: rgba(255, 255, 255, 0.1);
}
}
}
@@ -118,7 +133,7 @@
.p-toast-message {
.p-toast-icon-close {
&:hover {
background: rgba(255,255,255,.1);
background: rgba(255, 255, 255, 0.1);
}
}
}
@@ -130,7 +145,12 @@
.p-picklist-buttons .p-button,
.p-orderlist-controls .p-button {
transition: opacity $transitionDuration, background-color $transitionDuration, color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
opacity $transitionDuration,
background-color $transitionDuration,
color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
.p-steps {

View File

@@ -41,7 +41,10 @@ $colors: (
$shade000: rgba(255, 255, 255, 0.87) !default; //text color
$shade100: rgba(255, 255, 255, 0.6) !default; //text secondary color
$shade500: #6b7280 !default;
$shade600: map-get($colors, "htwk-grau-140") !default; //input bg, border, divider
$shade600: map-get(
$colors,
"htwk-grau-140"
) !default; //input bg, border, divider
$shade700: map-get($colors, "htwk-grau") !default; //menu bg
$shade800: map-get($colors, "htwk-grau") !default; //elevated surface
$shade900: rgba(map-get($colors, "htwk-schwarz"), 1) !default; //ground surface
@@ -49,15 +52,32 @@ $shade900: rgba(map-get($colors, "htwk-schwarz"), 1) !default; //ground surface
$hoverBg: rgba(255, 255, 255, 0.03) !default;
//global
$fontFamily: "Source Sans Pro", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol !default;
$fontFamily:
"Source Sans Pro",
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Arial,
sans-serif,
Apple Color Emoji,
Segoe UI Emoji,
Segoe UI Symbol !default;
$fontSize: 1rem !default;
$fontWeight: normal !default;
$textColor: $shade000 !default;
$textSecondaryColor: $shade100 !default;
$borderRadius: 6px !default;
$transitionDuration: 0.2s !default;
$formElementTransition: background-color $transitionDuration, color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration !default;
$actionIconTransition: background-color $transitionDuration, color $transitionDuration, box-shadow $transitionDuration !default;
$formElementTransition:
background-color $transitionDuration,
color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration !default;
$actionIconTransition:
background-color $transitionDuration,
color $transitionDuration,
box-shadow $transitionDuration !default;
$listItemTransition: box-shadow $transitionDuration !default;
$primeIconFontSize: 1rem !default;
$divider: 1px solid $shade600 !default;
@@ -135,8 +155,10 @@ $inputListHeaderBorder: 1px solid $shade600 !default;
$inputOverlayBg: $inputListBg !default;
$inputOverlayHeaderBg: $inputListHeaderBg !default;
$inputOverlayBorder: 1px solid $shade600 !default;
$inputOverlayShadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2),
0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12) !default;
$inputOverlayShadow:
0 2px 4px -1px rgba(0, 0, 0, 0.2),
0 4px 5px 0 rgba(0, 0, 0, 0.14),
0 1px 10px 0 rgba(0, 0, 0, 0.12) !default;
//password
$passwordMeterBg: $shade600 !default;
@@ -157,8 +179,10 @@ $buttonHoverBorderColor: $primaryLightColor !default;
$buttonActiveBg: $primaryLighterColor !default;
$buttonTextActiveColor: $primaryTextColor !default;
$buttonActiveBorderColor: $primaryLighterColor !default;
$raisedButtonShadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12) !default;
$raisedButtonShadow:
0px 3px 1px -2px rgba(0, 0, 0, 0.2),
0px 2px 2px 0px rgba(0, 0, 0, 0.14),
0px 1px 5px 0px rgba(0, 0, 0, 0.12) !default;
$roundedButtonBorderRadius: 2rem !default;
$textButtonHoverBgOpacity: 0.04 !default;
@@ -178,7 +202,7 @@ $secondaryButtonActiveBg: #e2e8f0 !default;
$secondaryButtonTextActiveColor: $secondaryButtonTextColor !default;
$secondaryButtonActiveBorderColor: #e2e8f0 !default;
$secondaryButtonFocusShadow: 0 0 0 1px
scale-color($secondaryButtonBg, $lightness: 30%) !default;
scale-color($secondaryButtonBg, $lightness: 30%) !default;
$infoButtonBg: map-get($colors, "htwk-blau") !default;
$infoButtonTextColor: #b1dafa !default;
@@ -189,7 +213,8 @@ $infoButtonHoverBorderColor: map-get($colors, "htwk-cyan") !default;
$infoButtonActiveBg: map-get($colors, "htwk-cyan") !default;
$infoButtonTextActiveColor: $infoButtonTextColor !default;
$infoButtonActiveBorderColor: map-get($colors, "htwk-cyan") !default;
$infoButtonFocusShadow: 0 0 0 1px scale-color($infoButtonHoverBg, $lightness: 30%) !default;
$infoButtonFocusShadow: 0 0 0 1px
scale-color($infoButtonHoverBg, $lightness: 30%) !default;
$successButtonBg: map-get($colors, "htwk-gruen") !default;
$successButtonTextColor: #052e16 !default;
@@ -201,19 +226,25 @@ $successButtonActiveBg: #bbf7d0 !default;
$successButtonTextActiveColor: $successButtonTextColor !default;
$successButtonActiveBorderColor: #bbf7d0 !default;
$successButtonFocusShadow: 0 0 0 1px
scale-color($successButtonBg, $lightness: 30%) !default;
scale-color($successButtonBg, $lightness: 30%) !default;
$warningButtonBg: map-get($colors, "htwk-yellow") !default;
$warningButtonTextColor: #493c08 !default;
$warningButtonBorder: 1px solid map-get($colors, "htwk-yellow") !default;
$warningButtonHoverBg: scale-color($warningButtonBg, $lightness: 30%) !default;
$warningButtonTextHoverColor: $warningButtonTextColor !default;
$warningButtonHoverBorderColor: scale-color($warningButtonBg, $lightness: 10%) !default;
$warningButtonHoverBorderColor: scale-color(
$warningButtonBg,
$lightness: 10%
) !default;
$warningButtonActiveBg: scale-color($warningButtonBg, $lightness: 30%) !default;
$warningButtonTextActiveColor: $warningButtonTextColor !default;
$warningButtonActiveBorderColor: scale-color($warningButtonBg, $lightness: 30%) !default;
$warningButtonActiveBorderColor: scale-color(
$warningButtonBg,
$lightness: 30%
) !default;
$warningButtonFocusShadow: 0 0 0 1px
scale-color($warningButtonBg, $lightness: 30%) !default;
scale-color($warningButtonBg, $lightness: 30%) !default;
$helpButtonBg: #c084fc !default;
$helpButtonTextColor: #3b0764 !default;
@@ -236,7 +267,7 @@ $dangerButtonActiveBg: #fecaca !default;
$dangerButtonTextActiveColor: $dangerButtonTextColor !default;
$dangerButtonActiveBorderColor: #fecaca !default;
$dangerButtonFocusShadow: 0 0 0 1px
scale-color($dangerButtonBg, $lightness: 30%) !default;
scale-color($dangerButtonBg, $lightness: 30%) !default;
$contrastButtonBg: #ffffff !default;
$contrastButtonTextColor: $shade900 !default;
@@ -478,8 +509,10 @@ $cardSubTitleFontWeight: 100 !default;
$cardSubTitleColor: $shade100 !default;
$cardContentPadding: 1.25rem 0 !default;
$cardFooterPadding: 1.25rem 0 0 0 !default;
$cardShadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
0 1px 3px 0 rgba(0, 0, 0, 0.12) !default;
$cardShadow:
0 2px 1px -1px rgba(0, 0, 0, 0.2),
0 1px 1px 0 rgba(0, 0, 0, 0.14),
0 1px 3px 0 rgba(0, 0, 0, 0.12) !default;
//editor
$editorToolbarBg: $panelHeaderBg !default;
@@ -644,8 +677,10 @@ $contrastMessageIconColor: $contrastButtonTextColor !default;
//overlays
$overlayContentBorder: 1px solid $shade600 !default;
$overlayContentBg: $panelContentBg !default;
$overlayContainerShadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !default;
$overlayContainerShadow:
0px 11px 15px -7px rgba(0, 0, 0, 0.2),
0px 24px 38px 3px rgba(0, 0, 0, 0.14),
0px 9px 46px 8px rgba(0, 0, 0, 0.12) !default;
//dialog
$dialogHeaderBg: $shade800 !default;
@@ -719,8 +754,10 @@ $submenuHeaderBorderRadius: 0 !default;
$submenuHeaderFontWeight: 0 !default;
$overlayMenuBg: $menuBg !default;
$overlayMenuBorder: 1px solid $shade600 !default;
$overlayMenuShadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2),
0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12) !default;
$overlayMenuShadow:
0 2px 4px -1px rgba(0, 0, 0, 0.2),
0 4px 5px 0 rgba(0, 0, 0, 0.14),
0 1px 10px 0 rgba(0, 0, 0, 0.12) !default;
$verticalMenuPadding: 0.25rem 0 !default;
$menuSeparatorMargin: 0.25rem 0 !default;
@@ -887,10 +924,23 @@ $imagePreviewActionIconFontSize: 1.5rem !default;
$imagePreviewActionIconBorderRadius: 50% !default;
:root {
font-family: "Twemoji Country Flags", "Source Sans Pro", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-family:
"Twemoji Country Flags",
"Source Sans Pro",
-apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Arial,
sans-serif,
Apple Color Emoji,
Segoe UI Emoji,
Segoe UI Symbol;
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
font-variation-settings: normal;
--font-family: "Twemoji Country Flags", "Source Sans Pro", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
--font-family: "Twemoji Country Flags", "Source Sans Pro", -apple-system,
BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif, Apple Color Emoji,
Segoe UI Emoji, Segoe UI Symbol;
--font-feature-settings: "cv02", "cv03", "cv04", "cv11";
--surface-a: #{$shade800};
--surface-b: #{$shade900};

View File

@@ -5,16 +5,21 @@ $primaryLightestColor: rgba(255, 237, 0, 0.1) !default;
$primaryTextColor: #030712 !default;
$highlightBg: rgba($primaryColor, 0.16) !default;
$highlightTextColor: rgba(255,255,255,0.87) !default;
$highlightTextColor: rgba(255, 255, 255, 0.87) !default;
$highlightFocusBg: rgba($primaryColor, 0.24) !default;
@import '../_variables';
@import './_fonts';
@import '../../../../theme-base/_components';
@import '../_extensions';
@import "../_variables";
@import "./_fonts";
@import "../../../../theme-base/_components";
@import "../_extensions";
:root {
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 100;
}
@@ -138,9 +143,15 @@ $highlightFocusBg: rgba($primaryColor, 0.24) !default;
color: rgba(255, 255, 255, 0.87);
}
.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active,
.fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active,
.fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-dayGridMonth-button.fc-button-active,
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-timeGridWeek-button.fc-button-active,
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-timeGridDay-button.fc-button-active {
background: map-get($colors, "htwk-yellow"); /*#93c5fd*/
border-color: map-get($colors, "htwk-yellow"); /*#93c5fd*/
color: map-get($colors, "htwk-schwarz"); /*#1c2127*/
@@ -448,6 +459,9 @@ $highlightFocusBg: rgba($primaryColor, 0.24) !default;
.fc.fc-theme-standard .fc-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(map-get($colors, "htwk-yellow"), 0.16); /*rgba(147, 197, 253, 0.16)*/
background: rgba(
map-get($colors, "htwk-yellow"),
0.16
); /*rgba(147, 197, 253, 0.16)*/
}
}

View File

@@ -1,5 +1,8 @@
@mixin focused-ring($ring-color) {
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px $ring-color, 0 1px 2px 0 rgba(0, 0, 0, 1.0);
box-shadow:
0 0 0 2px #ffffff,
0 0 0 4px $ring-color,
0 1px 2px 0 rgba(0, 0, 0, 1);
}
@layer primevue {
@@ -9,13 +12,19 @@
.p-selectbutton > .p-button,
.p-togglebutton.p-button {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
.p-accordion {
.p-accordion-header {
.p-accordion-header-link {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
}
}
@@ -24,7 +33,10 @@
.p-tabview-nav {
li {
.p-tabview-nav-link {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
}
}
@@ -34,7 +46,10 @@
.p-tabmenu-nav {
.p-tabmenuitem {
.p-menuitem-link {
transition: background-color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
background-color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
}
}
@@ -112,7 +127,12 @@
.p-picklist-buttons .p-button,
.p-orderlist-controls .p-button {
transition: opacity $transitionDuration, background-color $transitionDuration, color $transitionDuration, border-color $transitionDuration, box-shadow $transitionDuration;
transition:
opacity $transitionDuration,
background-color $transitionDuration,
color $transitionDuration,
border-color $transitionDuration,
box-shadow $transitionDuration;
}
.p-steps {

View File

@@ -4,17 +4,22 @@ $primaryDarkColor: #002d67 !default;
$primaryDarkerColor: #022541 !default;
$primaryTextColor: #ffffff !default;
$highlightBg: #EFF6FF !default;
$highlightBg: #eff6ff !default;
$highlightTextColor: $primaryDarkerColor !default;
$highlightFocusBg: rgba($primaryColor, .24) !default;
$highlightFocusBg: rgba($primaryColor, 0.24) !default;
@import '../_variables';
@import './_fonts';
@import '../../../../theme-base/_components';
@import '../_extensions';
@import "../_variables";
@import "./_fonts";
@import "../../../../theme-base/_components";
@import "../_extensions";
:root {
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 100;
}
@@ -139,9 +144,15 @@ $highlightFocusBg: rgba($primaryColor, .24) !default;
color: rgba(255, 255, 255, 0.87);
}
.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active,
.fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active,
.fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-dayGridMonth-button.fc-button-active,
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-timeGridWeek-button.fc-button-active,
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-timeGridDay-button.fc-button-active {
background: map-get($colors, "primary"); /*#93c5fd*/
border-color: map-get($colors, "primary"); /*#93c5fd*/
color: $primaryTextColor; /*#1c2127*/
@@ -449,6 +460,9 @@ $highlightFocusBg: rgba($primaryColor, .24) !default;
.fc.fc-theme-standard .fc-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(map-get($colors, "primary"), 0.16); /*rgba(147, 197, 253, 0.16)*/
background: rgba(
map-get($colors, "primary"),
0.16
); /*rgba(147, 197, 253, 0.16)*/
}
}

View File

@@ -1,22 +1,35 @@
@use 'sass:color';
@use "sass:color";
$primaryColor: #00944c !default;
$primaryLightColor: color.scale($primaryColor, $lightness: 10%, $saturation: -10%) !default;
$primaryLightColor: color.scale(
$primaryColor,
$lightness: 10%,
$saturation: -10%
) !default;
$primaryDarkColor: color.scale($primaryColor, $lightness: -40%) !default;
$primaryDarkerColor: color.scale($primaryColor, $lightness: -80%) !default;
$primaryTextColor: #ffffff !default;
$highlightBg: color.scale($primaryColor, $lightness: 90%, $saturation: -80%) !default;
$highlightBg: color.scale(
$primaryColor,
$lightness: 90%,
$saturation: -80%
) !default;
$highlightTextColor: $primaryDarkerColor !default;
$highlightFocusBg: rgba($primaryColor, .24) !default;
$highlightFocusBg: rgba($primaryColor, 0.24) !default;
@import '../_variables';
@import './_fonts';
@import '../../../../theme-base/_components';
@import '../_extensions';
@import "../_variables";
@import "./_fonts";
@import "../../../../theme-base/_components";
@import "../_extensions";
:root {
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 100;
}
@@ -141,9 +154,15 @@ $highlightFocusBg: rgba($primaryColor, .24) !default;
color: rgba(255, 255, 255, 0.87);
}
.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active,
.fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active,
.fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-dayGridMonth-button.fc-button-active,
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-timeGridWeek-button.fc-button-active,
.fc.fc-unthemed
.fc-toolbar
.fc-button.fc-timeGridDay-button.fc-button-active {
background: map-get($colors, "primary"); /*#93c5fd*/
border-color: map-get($colors, "primary"); /*#93c5fd*/
color: $primaryTextColor; /*#1c2127*/
@@ -451,6 +470,9 @@ $highlightFocusBg: rgba($primaryColor, .24) !default;
.fc.fc-theme-standard .fc-highlight {
color: rgba(255, 255, 255, 0.87);
background: rgba(map-get($colors, "primary"), 0.16); /*rgba(147, 197, 253, 0.16)*/
background: rgba(
map-get($colors, "primary"),
0.16
); /*rgba(147, 197, 253, 0.16)*/
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -43,39 +43,40 @@ const disabledPages = [
const router = useRouter();
const route = useRoute();
const domain = "cal.htwk-leipzig.de"
provide('domain', domain);
const domain = "cal.htwk-leipzig.de";
provide("domain", domain);
const baseUri = "https://" + domain;
const canonical = computed(() => `${baseUri}${router.resolve(route.name ? { name: route.name } : route).path}`);
const title = computed(() => route.meta.label?
`HTWKalender - ${t(String(route.meta.label))}`:
"HTWKalender"
const canonical = computed(
() =>
`${baseUri}${router.resolve(route.name ? { name: route.name } : route).path}`,
);
const description = computed(() => route.meta.description?
t(String(route.meta.description)):
t("description")
const title = computed(() =>
route.meta.label
? `HTWKalender - ${t(String(route.meta.label))}`
: "HTWKalender",
);
const description = computed(() =>
route.meta.description ? t(String(route.meta.description)) : t("description"),
);
useHead({
title: title,
link: [
{ rel: "canonical", href: canonical},
],
link: [{ rel: "canonical", href: canonical }],
meta: [
{ name: "description", content: description},
{ property: "og:description", content: description},
]
{ name: "description", content: description },
{ property: "og:description", content: description },
],
});
// SEO optimization
useServerHead({
title: title
title: title,
});
useServerSeoMeta(
{
useServerSeoMeta({
title: title,
description: description,
keywords: "HTWK Leipzig, Stundenplan, iCal, freie Räume, Lerngruppen, Sport, Prüfungen",
keywords:
"HTWK Leipzig, Stundenplan, iCal, freie Räume, Lerngruppen, Sport, Prüfungen",
// openGraph
ogTitle: title,
ogDescription: description,
@@ -86,8 +87,7 @@ useServerSeoMeta(
// twitter
twitterCard: "summary_large_image",
twitterSite: "@HTWKLeipzig",
}
);
});
const store = moduleStore();
const mobilePage = ref(true);
@@ -104,15 +104,14 @@ const updateMobile = () => {
updateMobile();
if (!import.meta.env.SSR)
window.addEventListener("resize", updateMobile);
if (!import.meta.env.SSR) window.addEventListener("resize", updateMobile);
</script>
<template>
<MenuBar />
<RouterView v-slot="{ Component, route }" class="mb-8">
<RouterView v-slot="{ Component, route: currentRoute }" class="mb-8">
<transition name="scale" mode="out-in">
<div :key="route.name ?? ''" class="origin-near-top">
<div :key="currentRoute.name ?? ''" class="origin-near-top">
<component :is="Component" />
</div>
</transition>

View File

@@ -27,9 +27,7 @@ export async function fetchEventTypes(): Promise<string[]> {
})
.then((responseModules: string[]) => {
responseModules.forEach((eventType: string) => {
eventTypes.push(
eventType,
);
eventTypes.push(eventType);
});
});
return eventTypes;

View File

@@ -42,7 +42,6 @@ if (store.isEmpty()) {
const eventTypes: Ref<string[]> = ref([]);
const mobilePage = inject("mobilePage") as Ref<boolean>;
const filters = ref({
course: {
@@ -67,7 +66,7 @@ const loadedModules: Ref<Module[]> = ref(new Array(10));
const loadingData = ref(true);
onMounted( () => {
onMounted(() => {
fetchAllModules()
.then(
(data) =>

View File

@@ -63,7 +63,7 @@ onMounted(() => {
class="p-button-rounded w-full md:w-auto"
style="margin-right: 1rem"
:severity="isDark ? 'warning' : 'success'"
@click="toggleTheme();"
@click="toggleTheme()"
>
<i v-if="isDark" class="pi pi-sun"></i>
<i v-else class="pi pi-moon"></i>

View File

@@ -101,8 +101,8 @@ function handleDarkModeToggled(isDarkVar: boolean) {
: 'flex align-items-center'
"
v-bind="props.action"
@click="navigate"
:href="item.route"
@click="navigate"
>
<span :class="item.icon" />
<span class="ml-2 p-menuitem-label">{{ item.label }}</span>
@@ -136,7 +136,9 @@ function handleDarkModeToggled(isDarkVar: boolean) {
</template>
<template #end>
<div class="flex align-items-stretch justify-content-center">
<DarkModeSwitcher @dark-mode-toggled="handleDarkModeToggled"></DarkModeSwitcher>
<DarkModeSwitcher
@dark-mode-toggled="handleDarkModeToggled"
></DarkModeSwitcher>
<LocaleSwitcher></LocaleSwitcher>
</div>
</template>

View File

@@ -175,9 +175,7 @@ const calendarOptions: ComputedRef<CalendarOptions> = computed(() => ({
color: event.showFree
? "var(--htwk-gruen-500)"
: "var(--htwk-grau-60-500)",
textColor: event.showFree
? "var(--green-50)"
: "white",
textColor: event.showFree ? "var(--green-50)" : "white",
title: event.showFree
? t("roomFinderPage.available")
: t("roomFinderPage.occupied"),

View File

@@ -142,6 +142,6 @@ export const createApp = ViteSSG(
app.component("Skeleton", Skeleton);
app.component("Calendar", Calendar);
},
)
);
export {router}
export { router };

View File

@@ -14,7 +14,11 @@
//You should have received a copy of the GNU Affero General Public License
//along with this program. If not, see <https://www.gnu.org/licenses/>.
import { createMemoryHistory, RouterOptions, createWebHistory } from "vue-router";
import {
createMemoryHistory,
RouterOptions,
createWebHistory,
} from "vue-router";
const CourseSelection = () => import("../view/CourseSelection.vue");
const AdditionalModules = () => import("../view/create/AdditionalModules.vue");
@@ -28,8 +32,10 @@ const EditAdditionalModules = () =>
const EditModules = () => import("../view/edit/EditModules.vue");
const FaqView = () => import("../view/FaqView.vue");
const routes : RouterOptions = {
history: import.meta.env.SSR ? createMemoryHistory(import.meta.env.BASE_URL) : createWebHistory(import.meta.env.BASE_URL),
const routes: RouterOptions = {
history: import.meta.env.SSR
? createMemoryHistory(import.meta.env.BASE_URL)
: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: "/",
@@ -64,7 +70,7 @@ const routes : RouterOptions = {
meta: {
label: "faq",
description: "faqView.description",
}
},
},
{
path: "/additional-modules",
@@ -72,7 +78,7 @@ const routes : RouterOptions = {
component: AdditionalModules,
meta: {
label: "createCalendar",
}
},
},
{
path: "/edit-additional-modules",
@@ -80,8 +86,8 @@ const routes : RouterOptions = {
component: EditAdditionalModules,
meta: {
label: "editCalendar",
description: "editCalendarView.description"
}
description: "editCalendarView.description",
},
},
{
path: "/edit-calendar",
@@ -89,16 +95,16 @@ const routes : RouterOptions = {
component: EditModules,
meta: {
label: "editCalendar",
description: "editCalendarView.description"
}
description: "editCalendarView.description",
},
},
{
path: "/calendar-link",
name: "calendar-link",
component: CalendarLink,
meta: {
label: "createCalendar"
}
label: "createCalendar",
},
},
{
path: "/edit",
@@ -106,8 +112,8 @@ const routes : RouterOptions = {
component: EditCalendarView,
meta: {
label: "editCalendar",
description: "editCalendarView.description"
}
description: "editCalendarView.description",
},
},
{
path: "/privacy-policy",
@@ -115,8 +121,9 @@ const routes : RouterOptions = {
component: {},
meta: {
label: "privacy",
redirect: "https://www.htwk-leipzig.de/hochschule/kontakt/datenschutzerklaerung/",
}
redirect:
"https://www.htwk-leipzig.de/hochschule/kontakt/datenschutzerklaerung/",
},
},
{
path: "/imprint",
@@ -125,15 +132,15 @@ const routes : RouterOptions = {
meta: {
label: "imprint",
redirect: "https://www.htwk-leipzig.de/hochschule/kontakt/impressum/",
}
},
},
{
path: "/rename-modules",
name: "rename-modules",
component: RenameModules,
meta: {
label: "createCalendar"
}
label: "createCalendar",
},
},
],
};

View File

@@ -26,7 +26,9 @@ import { useI18n } from "vue-i18n";
const { t } = useI18n({ useScope: "global" });
const toast = useToast();
const domain = import.meta.env.SSR ? inject<string>("domain")! : window.location.hostname;
const domain = import.meta.env.SSR
? inject<string>("domain")!
: window.location.hostname;
const getLink = () =>
"https://" + domain + "/api/feed?token=" + tokenStore().token;
@@ -36,7 +38,7 @@ const show = () => {
severity: "info",
summary: t("calendarLink.copyToastSummary"),
detail: t("calendarLink.copyToastNotification"),
life: 3000
life: 3000,
});
};
@@ -57,7 +59,7 @@ function copyToClipboard() {
severity: "error",
summary: t("calendarLink.copyToastError"),
detail: t("calendarLink.copyToastErrorDetail"),
life: 3000
life: 3000,
});
});
}
@@ -65,14 +67,14 @@ function copyToClipboard() {
const forwardToGoogle = () => {
window.open(
"https://calendar.google.com/calendar/u/0/r?cid=" +
encodeURI(getLink().replace("https://", "http://"))
encodeURI(getLink().replace("https://", "http://")),
);
};
const forwardToMicrosoft = () => {
window.open(
"https://outlook.live.com/owa?path=/calendar/action/compose&rru=addsubscription&name=HTWK%20Kalender&url=" +
encodeURI(getLink())
encodeURI(getLink()),
);
};
@@ -80,18 +82,18 @@ const actions = computed(() => [
{
label: t("calendarLink.copyToClipboard"),
icon: "pi pi-copy",
command: copyToClipboard
command: copyToClipboard,
},
{
label: t("calendarLink.toGoogleCalendar"),
icon: "pi pi-google",
command: forwardToGoogle
command: forwardToGoogle,
},
{
label: t("calendarLink.toMicrosoftCalendar"),
icon: "pi pi-microsoft",
command: forwardToMicrosoft
}
command: forwardToMicrosoft,
},
]);
</script>

View File

@@ -16,8 +16,7 @@ You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<script lang="ts" setup>
</script>
<script lang="ts" setup></script>
<template>
<div class="flex align-items-center justify-content-center flex-column">
@@ -244,17 +243,26 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<div class="col">
{{ $t("faqView.crossPromo.teaser") }}
<div class="flex flex-column gap-3 my-3">
<Card v-for="promoPage in new Array('mensa', 'htwkarte')" :key="promoPage">
<Card
v-for="promoPage in new Array('mensa', 'htwkarte')"
:key="promoPage"
>
<template #title>
<div class="flex flex-row align-items-start">
<Avatar :image="'/promo/' + promoPage + '.png'" class="mr-2 flex-shrink-0" size="xlarge" />
<Avatar
:image="'/promo/' + promoPage + '.png'"
class="mr-2 flex-shrink-0"
size="xlarge"
/>
<div class="flex flex-column gap-1">
<div>
{{$t("faqView.crossPromo." + promoPage + ".title") }}
{{ $t("faqView.crossPromo." + promoPage + ".title") }}
</div>
<div class="p-card-subtitle text-base">
<a :href="$t('faqView.crossPromo.' + promoPage + '.link')">
{{$t("faqView.crossPromo." + promoPage + ".link") }}
<a
:href="$t('faqView.crossPromo.' + promoPage + '.link')"
>
{{ $t("faqView.crossPromo." + promoPage + ".link") }}
</a>
</div>
</div>

View File

@@ -18,13 +18,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<script lang="ts" setup>
import moduleStore from "@/store/moduleStore";
import {router} from "@/main";
import { router } from "@/main";
import AdditionalModuleTable from "@/components/AdditionalModuleTable.vue";
const store = moduleStore();
function topFunction() {
window.scrollTo({top: 0, behavior: 'smooth'});
window.scrollTo({ top: 0, behavior: "smooth" });
}
async function nextStep() {

View File

@@ -129,8 +129,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
/>
</template>
<template #body="slotProps">
<div class="flex flex-column sm:flex-row justify-content-between flex-1 column-gap-4 mx-2 md:mx-4">
<p class="flex-1 align-self-stretch sm:align-self-center my-2">{{ slotProps.data.room }}</p>
<div
class="flex flex-column sm:flex-row justify-content-between flex-1 column-gap-4 mx-2 md:mx-4"
>
<p class="flex-1 align-self-stretch sm:align-self-center my-2">
{{ slotProps.data.room }}
</p>
<Button
:label="$t('freeRooms.viewOccupancy')"
icon="pi pi-hourglass"

View File

@@ -18,29 +18,32 @@ import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { fileURLToPath } from "node:url";
import resolve from "@rollup/plugin-node-resolve";
import {resolve as pathResolver} from "path";
import { resolve as pathResolver } from "path";
import terser from "@rollup/plugin-terser";
import ViteSSGOptions from "vite-ssg";
import generateSitemap from 'vite-ssg-sitemap'
import vueDevTools from 'vite-plugin-vue-devtools'
import generateSitemap from "vite-ssg-sitemap";
import vueDevTools from "vite-plugin-vue-devtools";
const hostname = "https://cal.htwk-leipzig.de";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
resolve(),
terser(),
vueDevTools(),
],
plugins: [vue(), resolve(), terser(), vueDevTools()],
resolve: {
alias:
{
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
'primevue' : pathResolver(__dirname, 'node_modules/primevue'),
primevue: pathResolver(__dirname, "node_modules/primevue"),
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.css', '.scss'],
extensions: [
".mjs",
".js",
".ts",
".jsx",
".tsx",
".json",
".css",
".scss",
],
},
ssgOptions: {
script: "async",
@@ -50,12 +53,12 @@ export default defineConfig({
generateSitemap({
hostname: hostname,
exclude: [
'/additional-modules',
'/edit-additional-modules',
'/edit-calendar',
'/rename-modules',
]
})
"/additional-modules",
"/edit-additional-modules",
"/edit-calendar",
"/rename-modules",
],
});
},
},
server: {
@@ -86,10 +89,14 @@ export default defineConfig({
output: {
manualChunks(id) {
if (id.includes("node_modules")) {
return id.toString().split("node_modules/")[1].split("/")[0].toString()
return id
.toString()
.split("node_modules/")[1]
.split("/")[0]
.toString();
}
},
},
}
},
},
});