Skip to content
Merged
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
2 changes: 1 addition & 1 deletion assets/js/theme/nav/mainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MainMenu {

resize () {
const isMobile = window.innerWidth <= breakpoints.md;
// document.documentElement.style.setProperty('--header-height', this.element.offsetHeight + 'px');
document.documentElement.style.setProperty('--header-height', this.element.offsetHeight + 'px');

// is state changed ?
if (this.state.isMobile === isMobile) {
Expand Down
1 change: 0 additions & 1 deletion assets/sass/_theme/_configuration.sass
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ $block-key_figures-number-font-size-xxl: px2rem(80) !default
$article-title-size: $h4-size !default
$article-title-size-md: $h4-size-md !default
$article-media-background: color-contrast($main-background-color, 3%) !default
$article-title-size: $h4-size !default

$post-media-background: $article-media-background !default
$post-media-aspect-ratio: 50% !default
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/_theme/_utils.sass
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
object-fit: cover
.title
font-size: $article-title-size
margin-bottom: px2rem(5)
margin-bottom: px2rem(5) // faire une variable ?
@include media-breakpoint-up(md)
font-size: $article-title-size-md
a
Expand Down
25 changes: 24 additions & 1 deletion assets/sass/_theme/blocks/pages.sass
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
a
@include hover-translate-icon(before, 3)
text-decoration-color: transparent
line-height: px2rem(30)
&:hover
text-decoration-color: black
.page
Expand All @@ -48,6 +49,12 @@
background-color: $block-pages-card-background
padding-bottom: $grid-gutter
padding-top: $grid-gutter
.main-page
a
@include icon("arrow-right", after)
@include hover-translate-icon(before, 3)
&::after
font-size: px2rem(14)
.pages
@include grid(3, md)
margin-top: $spacing2
Expand All @@ -59,17 +66,33 @@
a
color: $block-pages-card-page-color
.more
@include icon("arrow-right", after)
@include link($block-pages-card-page-color)
@extend .small
// @extend .small
font-size: px2rem(16)
position: relative
text-decoration-color: $block-pages-card-page-color
text-decoration-line: underline
text-decoration-thickness: 1px
text-underline-offset: 3px
margin-top: auto
&::after
font-size: $small-font-size
opacity: 0
position: absolute
right: 0
transform: translateX(-20px)
transition: 0.55s $arrow-ease-transition
&:hover
.more:after
opacity: 1
transform: translateX(0)
a,
.more
transition: text-decoration-color .3s ease, color .3s ease
> div:first-child
display: flex
flex: auto
flex-direction: column
.title
a
Expand Down
4 changes: 1 addition & 3 deletions assets/sass/_theme/design-system/pagination.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// font-family: $font-family-sans-serif
font-size: px2rem(14)
justify-content: center
// Not working, crashes Hugo
// margin: #{$grid-gutter * 2.5} 0 0
margin: $grid-gutter 0 0
margin: calc($grid-gutter * 2.5) 0 0
li
@include list-reset
// @extend .page-item
Expand Down
2 changes: 2 additions & 0 deletions assets/sass/_theme/sections/diplomas.sass
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ ul.diplomas
button
@include button-reset
@include icon(caret, after)
font-size: px2rem(6)
margin-left: 5px

.dropdown-menu
@include inset(100%, 0, auto, auto)
Expand Down
15 changes: 8 additions & 7 deletions assets/sass/_theme/sections/programs.sass
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ol.programs
@include media-breakpoint-up(md)
font-size: $program-share-font-size-md
.lead
padding-top: $spacing4
padding-top: $spacing2
aside
@include container
@include sticky
Expand All @@ -130,13 +130,14 @@ ol.programs
justify-content: space-between
white-space: nowrap
margin: 0 #{-$spacing1}
padding: px2rem(20) 0
li
padding: $spacing1/2 $spacing1
padding: $spacing1/3 $spacing1/2
margin-bottom: 0
.blocks
.container
padding-left: 0
padding-right: 0
// .blocks
// .container
// padding-left: 0
// padding-right: 0
// .block-content
// @include media-breakpoint-up(md)
// padding-left: offset(5)
Expand Down Expand Up @@ -165,4 +166,4 @@ ol.programs

table
caption
@include visually-hidden
@include visually-hidden