diff --git a/assets/sass/_theme/_configuration.sass b/assets/sass/_theme/_configuration.sass index 3c3e3b7836a7cdefea4da42a40de5578aacfa15a..2caa15fc3f6fcf0bed84043e7ba0b4334c6ab973 100644 --- a/assets/sass/_theme/_configuration.sass +++ b/assets/sass/_theme/_configuration.sass @@ -3,6 +3,7 @@ // MAIN COLORS $main-color: black !default // Text color $main-background-color: white !default // Background color +$main-border-color: lightgray !default // Border color $body-color: $main-color !default $body-background-color: $main-background-color !default @@ -105,7 +106,7 @@ $icons: map-merge($icons, ("twitter": "\e90d")) // Breakpoints // TODO: réécrire en sass les mixins bootstrap $grid-breakpoints: (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px) - + // BLOCKS // Block call to action @@ -134,4 +135,4 @@ $post-time-color: lighten($main-color, 2) !default // Animations $arrow-ease-transition: cubic-bezier(0, 0.65, 0.4, 1.2) !default -$arrow-ease-transition-2: cubic-bezier(0, 0.65, 0.4, 1) !default \ No newline at end of file +$arrow-ease-transition-2: cubic-bezier(0, 0.65, 0.4, 1) !default diff --git a/assets/sass/_theme/blocks/datatable.sass b/assets/sass/_theme/blocks/datatable.sass index d2dd8ad2399fa8b3af70ac0eca47ae9d88cb9c00..8db1cffbb96ab9c7710a920bb648b36aa085e273 100644 --- a/assets/sass/_theme/blocks/datatable.sass +++ b/assets/sass/_theme/blocks/datatable.sass @@ -1,16 +1,3 @@ -// .block-datatable -// tbody -// border-top-width: 1px !important -// th, td -// &:first-child -// padding-left: 0 -// th -// white-space: nowrap -// caption:first-child -// & + thead, & + tbody -// border-top: 0 !important -// @include media-breakpoint-up(xl) -// th -// font-size: px2rem(22) -// td -// font-size: px2rem(20) +.block-datatable + th + white-space: nowrap diff --git a/assets/sass/_theme/design-system/table.sass b/assets/sass/_theme/design-system/table.sass new file mode 100644 index 0000000000000000000000000000000000000000..6d3bd4a27a54f31e0884419c2967c85f2b70f432 --- /dev/null +++ b/assets/sass/_theme/design-system/table.sass @@ -0,0 +1,26 @@ +table + border-collapse: collapse + caption-side: bottom + vertical-align: top + width: 100% + + caption + padding: px2rem(10) 0 + text-align: left + + th, + td + padding: px2rem(10) 0 + + thead + th + text-align: left + + tbody + th, + td + border-bottom: 1px solid $main-border-color + tr:first-child + th, + td + border-top: 1px solid $main-border-color diff --git a/assets/sass/_theme/hugo-osuny.sass b/assets/sass/_theme/hugo-osuny.sass index ff6cd0fbdfd67d4355a1f708b959b57561f4dce4..97f4b4d603241a8b071078203f7d97be06fa9226 100644 --- a/assets/sass/_theme/hugo-osuny.sass +++ b/assets/sass/_theme/hugo-osuny.sass @@ -19,6 +19,7 @@ @import "design-system/header" @import "design-system/hero" @import "design-system/nav" +@import "design-system/table" @import "design-system/typography" // Blocks @@ -56,4 +57,4 @@ @import "sections/researchers" @import "sections/sitemap" @import "sections/teachers" -@import "sections/volumes" \ No newline at end of file +@import "sections/volumes"