Skip to content

Commit

Permalink
Merge pull request #606 from danskernesdigitalebibliotek/DDFFORM-662-…
Browse files Browse the repository at this point in the history
…frontend

Add styles for recurring opening hours (editor)
  • Loading branch information
kasperbirch1 authored Apr 24, 2024
2 parents a5254af + d6158c6 commit 89ee7ca
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
1 change: 1 addition & 0 deletions public/icons/logo/reload_logo_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/logo/reload_logo_white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 41 additions & 4 deletions src/stories/Library/opening-hours-editor/opening-hours-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: grid;
background: #f8f8f8;
padding: 2.5rem;
min-width: 300px;
width: 350px;
line-height: 1;
}

Expand All @@ -26,9 +26,30 @@
background-color: #fff;
}

.opening-hours-editor-form__checkbox {
margin-top: 0.75rem;
margin-bottom: 0.5rem;
display: flex;
gap: 0.5rem;
align-items: center;

label {
margin: 0;
}
}

.opening-hours-editor-form__table {
tr > td:last-child {
white-space: nowrap;
text-align: right;
}
}

.opening-hours-editor-form__submit,
.opening-hours-editor-form__remove {
.opening-hours-editor-form__remove,
.opening-hours-editor-form__cancel {
cursor: pointer;
border: 0;
margin-top: 1rem;
color: #fff;
padding: 0.75rem 1.5rem;
Expand All @@ -37,7 +58,6 @@
}

.opening-hours-editor-form__submit {
border: 0;
background-color: #22c55e;

&:hover {
Expand All @@ -46,17 +66,34 @@
}

.opening-hours-editor-form__remove {
border: 0;
background-color: #ef4444;

&:hover {
background-color: #dc2626;
}
}

.opening-hours-editor-form__cancel {
background-color: #d1d5db;

&:hover {
background-color: #a1a1aa;
}
}

.opening-hours-editor-event-content {
padding: 5px 10px;
cursor: pointer;
width: 100%;
display: flex;
justify-content: space-between;
background-color: rgba(255, 255, 255, 0.8);
color: black;
}

.opening-hours-editor-event-content__series-icon {
width: 30px;
height: 30px;
}

// Override Drupal's default margin for tables inside .fc to eliminate top and bottom spacing
Expand Down

0 comments on commit 89ee7ca

Please sign in to comment.