Browse Source

Quelques corrections sur les liens et les titres.

svn/root
marcimat@rezo.net 1 year ago
parent
commit
54ec87fb05
  1. 1
      .gitattributes
  2. 13
      css/_type.scss
  3. 9
      css/_variables.scss
  4. 13
      css/components/_content.scss
  5. 1
      css/components/_list.scss
  6. 1
      css/components/_nav.scss
  7. 3
      css/utilities/_links.scss

1
.gitattributes

@ -1,6 +1,7 @@
* text=auto !eol
/body.html -text
css/_spip.variables.scss -text
css/_type.scss -text
css/_variables.scss -text
css/components/_breadcrumb.scss -text
css/components/_cartouche.scss -text

13
css/_type.scss

@ -0,0 +1,13 @@
@import "bootstrap2spip/css/_type";
h1,.h1,.h1-like { line-height: $h1-line-height; small { font-size: 0.65em; }}
.secondary h1,.secondary .h1,.secondary .h1-like,
h2,.h2,.h2-like { line-height: $h2-line-height; small { font-size: 0.70em; }}
.secondary h2,.secondary .h2,.secondary .h2-like,
h3,.h3,.h3-like { line-height: $h3-line-height; small { font-size: 0.80em; }}
.secondary h3,.secondary .h3,.secondary .h3-like,
h4,.h4,.h4-like { line-height: $h4-line-height; }
.secondary h4,.secondary .h4,.secondary .h4-like,
h5,.h5,.h5-like { line-height: $h5-line-height; font-weight: bold; }
.secondary h5,.secondary .h5,.secondary .h5-like,
h6,.h6,.h6-like { line-height: $h6-line-height; font-weight: bold; }

9
css/_variables.scss

@ -303,10 +303,17 @@ $h4-font-size: $font-size-base * 1.625 !default;
$h5-font-size: $font-size-base * 1.375 !default;
$h6-font-size: $font-size-base * 1.125 !default;
$h1-line-height: 1.25 !default;
$h2-line-height: 1.25 !default;
$h3-line-height: 1.25 !default;
$h4-line-height: 1.25 !default;
$h5-line-height: 1.25 !default;
$h6-line-height: 1.25 !default;
$headings-margin-bottom: $spacer / 2 !default;
$headings-font-family: "Cormorant Garamond", $font-family-serif !default;
$headings-font-weight: 300 !default;
$headings-line-height: 1.1 !default;
$headings-line-height: $h1-line-height !default;
$headings-color: null !default;
$display1-size: 6rem !default;

13
css/components/_content.scss

@ -7,12 +7,17 @@ h1,h2,h3,h4,h5,h6,
}
.content {
a:not(.btn) {
@include link-content($primary, $black);
}
h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6 {
.h1,.h2,.h3,.h4,.h5,.h6,
.h1-like,.h2-like,.h3-like,.h4-like,.h5-like,.h6-like {
margin-top: 2 * $rem-vert-margin;
}
a {
@include link-content($primary, $black);
a {
@include link-content($black, $primary);
}
}
.hyperlien {

1
css/components/_list.scss

@ -14,6 +14,7 @@
text-align: center;
margin: 0 auto;
font-weight: normal;
line-height: 1.5;
margin-top: -$card-spacer-x - 1rem;
background-color: $well-bg;
padding: 0.25rem 1rem;

1
css/components/_nav.scss

@ -5,6 +5,7 @@
margin: 0 auto;
font-weight: normal;
font-size: 15rem / 18;
line-height: 1.5;
}
.nav-item {
text-transform: none;

3
css/utilities/_links.scss

@ -18,7 +18,8 @@
@mixin link-content($color, $color-hover) {
color:$color;
text-decoration: underline;
transition: color .2s, background-color .2s;
/*text-decoration: underline;*/
@include hover-focus-active {
color:$color-hover;
text-decoration: none;

Loading…
Cancel
Save