Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions assets/sass/404.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
@use "variables";

.o-error {
background-color: var(--bg-default);
border-radius: var(--border-radius-l);
border: var(--border);
padding: 2rem;

&__body {
@media (min-width: #{$breakpoint-lg}) {
@media (min-width: #{variables.$breakpoint-lg}) {
display: flex;
align-items: center;
gap: 3rem;
Expand All @@ -15,20 +17,20 @@
&__image {
margin-bottom: 2rem;

@media (min-width: #{$breakpoint-lg}) {
@media (min-width: #{variables.$breakpoint-lg}) {
margin-bottom: 0;
flex: 0 0 40%;
}
}

&__divider {
@media (min-width: #{$breakpoint-lg}) {
@media (min-width: #{variables.$breakpoint-lg}) {
display: none;
}
}

&__content {
@media (min-width: #{$breakpoint-lg}) {
@media (min-width: #{variables.$breakpoint-lg}) {
flex: 1;
}
}
Expand Down
38 changes: 20 additions & 18 deletions assets/sass/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:color";
@use "sass:map";
$breakpoint-sm: 576px;
$breakpoint-md: 768px;
$breakpoint-lg: 992px;
Expand Down Expand Up @@ -31,33 +33,33 @@ $tag-colors-dark: (
);

$fip-validity-colors: (
valid: map-get($tag-colors, success),
invalid: map-get($tag-colors, error),
unknown: map-get($tag-colors, info),
valid: map.get($tag-colors, success),
invalid: map.get($tag-colors, error),
unknown: map.get($tag-colors, info),
);

$fip-validity-colors-dark: (
valid: map-get($tag-colors-dark, success),
invalid: map-get($tag-colors-dark, error),
unknown: map-get($tag-colors-dark, info),
valid: map.get($tag-colors-dark, success),
invalid: map.get($tag-colors-dark, error),
unknown: map.get($tag-colors-dark, info),
);

$highlight-colors: (
success: map-get($tag-colors, success),
success: map.get($tag-colors, success),
tip: #116278,
inofficial: #42454a,
important: map-get($tag-colors, warning),
confusion: map-get($tag-colors, warning),
default: map-get($tag-colors, info),
important: map.get($tag-colors, warning),
confusion: map.get($tag-colors, warning),
default: map.get($tag-colors, info),
);

$highlight-colors-dark: (
success: map-get($tag-colors-dark, success),
success: map.get($tag-colors-dark, success),
tip: #61bdd6,
inofficial: #acb3c1,
important: map-get($tag-colors-dark, warning),
confusion: map-get($tag-colors-dark, warning),
default: map-get($tag-colors-dark, info),
important: map.get($tag-colors-dark, warning),
confusion: map.get($tag-colors-dark, warning),
default: map.get($tag-colors-dark, info),
);

:root {
Expand Down Expand Up @@ -131,15 +133,15 @@ $highlight-colors-dark: (
}

@each $name, $color in $tag-colors {
--tag-#{$name}-bg: #{mix(white, $color, 90%)};
--tag-#{$name}-bg: #{color.mix(white, $color, 90%)};
--tag-#{$name}-color: #{$color};
}

--tag-newsUpdate-bg: #ffffff;
--tag-newsUpdate-color: #414141;

@each $name, $color in $highlight-colors {
--highlight-#{$name}-bg: #{mix(white, $color, 90%)};
--highlight-#{$name}-bg: #{color.mix(white, $color, 90%)};
--highlight-#{$name}-color: #{$color};
}
}
Expand All @@ -166,15 +168,15 @@ $highlight-colors-dark: (
}

@each $name, $color in $tag-colors-dark {
--tag-#{$name}-bg: #{mix(black, $color, 65%)};
--tag-#{$name}-bg: #{color.mix(black, $color, 65%)};
--tag-#{$name}-color: #{$color};
}

--tag-newsUpdate-bg: #494949;
--tag-newsUpdate-color: #e0e0e0;

@each $name, $color in $highlight-colors-dark {
--highlight-#{$name}-bg: #{mix(black, $color, 65%)};
--highlight-#{$name}-bg: #{color.mix(black, $color, 65%)};
--highlight-#{$name}-color: #{$color};
}

Expand Down
7 changes: 5 additions & 2 deletions assets/sass/anchorlink.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
@use "styles";
@use "variables";

.a-anchorlink {
display: flex;
flex-wrap: nowrap;
margin-bottom: 1.2rem;
align-items: center;
column-gap: 0.8rem;

@media (max-width: #{$breakpoint-md}) {
@media (max-width: #{variables.$breakpoint-md}) {
justify-content: space-between;
}
}
Expand Down Expand Up @@ -67,7 +70,7 @@
opacity: 1;
}

@include focus-indicator(0.2rem);
@include styles.focus-indicator(0.2rem);

@media print {
display: none;
Expand Down
7 changes: 5 additions & 2 deletions assets/sass/booking.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "variables";
@use "headings";

.o-booking__header-content {
display: flex;
flex-direction: column;
Expand All @@ -14,7 +17,7 @@
margin-bottom: 0rem;
}

@media (max-width: #{$breakpoint-md}) {
@media (max-width: #{variables.$breakpoint-md}) {
&:empty {
display: none;
}
Expand Down Expand Up @@ -61,7 +64,7 @@
margin-top: 0;
}

@media (max-width: #{$breakpoint-md}) {
@media (max-width: #{variables.$breakpoint-md}) {
&:empty {
display: none;
}
Expand Down
9 changes: 6 additions & 3 deletions assets/sass/button.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
@use "styles";
@use "variables";

button {
border-radius: var(--border-radius-s);
@include focus-indicator(0.2rem);
@include styles.focus-indicator(0.2rem);

&:not(:disabled) {
cursor: pointer;
Expand All @@ -26,10 +29,10 @@ button {

&:hover,
&:focus {
background: rgba($link-hovered, 0.15);
background: rgba(variables.$link-hovered, 0.15);
}

@include focus-indicator(0.2rem);
@include styles.focus-indicator(0.2rem);

@media print {
padding: 0.6rem;
Expand Down
8 changes: 5 additions & 3 deletions assets/sass/content.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables";

.o-last-updated {
font-size: 1.3rem;
display: flex;
Expand All @@ -13,7 +15,7 @@
code {
font-size: inherit;
font-weight: 700;
color: $color-onLight;
color: variables.$color-onLight;
background-color: var(--bg-code);
padding: 0.2rem 0.8rem;
border-radius: var(--border-radius-s);
Expand Down Expand Up @@ -53,15 +55,15 @@ thead {

tbody {
tr {
border-bottom: 0.1rem solid $color-table-border;
border-bottom: 0.1rem solid variables.$color-table-border;
}

tr:nth-of-type(even) {
background-color: var(--bg-default);
}

tr:last-of-type {
border-bottom: 2px solid $link-hovered;
border-bottom: 2px solid variables.$link-hovered;

@media print {
border-bottom: 0.1rem solid #5b5b5b;
Expand Down
7 changes: 5 additions & 2 deletions assets/sass/contentNavigation.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "styles";
@use "variables";

.o-aside {
margin-bottom: 0;
position: sticky;
Expand Down Expand Up @@ -47,7 +50,7 @@
width: fit-content;
min-height: 2.4rem;

@include focus-indicator(0.1rem);
@include styles.focus-indicator(0.1rem);

> .a-icon {
align-self: flex-start;
Expand Down Expand Up @@ -136,7 +139,7 @@
}
}
}
@media (max-width: #{$breakpoint-lg}) {
@media (max-width: #{variables.$breakpoint-lg}) {
.o-aside {
position: fixed;
top: unset;
Expand Down
4 changes: 3 additions & 1 deletion assets/sass/dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables";

@keyframes dropdown-open-below {
from {
opacity: 0;
Expand Down Expand Up @@ -98,7 +100,7 @@
&:hover,
&:focus {
color: var(--link-hovered);
background: rgba($link-hovered, 0.15);
background: rgba(variables.$link-hovered, 0.15);
text-decoration: underline;
}
}
Expand Down
7 changes: 5 additions & 2 deletions assets/sass/expander.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@use "styles";
@use "variables";

.o-expander > hr {
margin: 0;
}
Expand Down Expand Up @@ -25,7 +28,7 @@
text-decoration: underline;
}

background: rgba($link-hovered, 0.15);
background: rgba(variables.$link-hovered, 0.15);
}

.o-expander__title-text {
Expand All @@ -34,7 +37,7 @@
width: 100%;
}

@include focus-indicator(0.2rem);
@include styles.focus-indicator(0.2rem);

> .a-icon {
transition: transform 0.2s;
Expand Down
10 changes: 6 additions & 4 deletions assets/sass/fip-validity.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables";

.o-fip-validity {
display: flex;
align-items: center;
Expand Down Expand Up @@ -32,7 +34,7 @@
margin-left: 0;
margin-top: 1rem;

@media (min-width: $breakpoint-lg) {
@media (min-width: variables.$breakpoint-lg) {
table-layout: fixed;
width: 100%;
}
Expand Down Expand Up @@ -71,11 +73,11 @@
flex: 1 1 100%;
text-align: center;

@media (min-width: $breakpoint-sm) {
@media (min-width: variables.$breakpoint-sm) {
flex: 1 1 calc(50% - 0.6rem);
}

@media (min-width: $breakpoint-lg) {
@media (min-width: variables.$breakpoint-lg) {
flex: 1 1 0;
}
}
Expand All @@ -88,7 +90,7 @@
padding-bottom: 0.6rem;
text-align: center;

@media (min-width: $breakpoint-lg) {
@media (min-width: variables.$breakpoint-lg) {
height: 2lh;
display: flex;
align-items: center;
Expand Down
7 changes: 5 additions & 2 deletions assets/sass/form.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
@use "styles";
@use "variables";

.m-form {
margin-bottom: 1.6rem;
margin-left: 0;
margin-right: 0;
width: 100%;

@media (min-width: #{$breakpoint-md}) {
@media (min-width: #{variables.$breakpoint-md}) {
width: 66%;
}

Expand All @@ -27,7 +30,7 @@
resize: vertical;
text-overflow: ellipsis;

@include focus-indicator(0.2rem);
@include styles.focus-indicator(0.2rem);
}

select {
Expand Down
4 changes: 3 additions & 1 deletion assets/sass/header.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables";

#header {
position: sticky;
width: 100%;
Expand All @@ -19,7 +21,7 @@
align-items: center;
display: flex;

@media (min-width: #{$breakpoint-md}) {
@media (min-width: #{variables.$breakpoint-md}) {
justify-content: unset;
}
}
Expand Down
4 changes: 3 additions & 1 deletion assets/sass/identifyOperator.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "variables";

.o-identify-operator {
&__item {
h3 {
Expand All @@ -23,7 +25,7 @@
margin-left: 2rem;
margin-bottom: 1rem;

@media (max-width: #{$breakpoint-md}) {
@media (max-width: #{variables.$breakpoint-md}) {
float: none;
width: 100%;
margin-left: 0;
Expand Down
Loading
Loading