Skip to content

Commit

Permalink
Fixes the styling of tags h1, h2... so as not to impact the component…
Browse files Browse the repository at this point in the history
…s | Fixes liferay#1111
  • Loading branch information
matuzalemsteles committed Sep 11, 2018
1 parent 785ed0f commit aaba6cb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
8 changes: 4 additions & 4 deletions clayui.com/src/styles/_guide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
article {
> h3 {
font-size: $base-size * 0.7;
font-weight: 700;
margin-bottom: $base-size * 1.2;
font-weight: 700 !important;
margin-bottom: $base-size * 1.2 !important;
padding-top: $base-size * 1.5;
text-transform: uppercase;
}

> h4 {
font-weight: 600;
margin-bottom: $base-size * 1.2;
font-weight: 600 !important;
margin-bottom: $base-size * 1.2 !important;
padding-top: $base-size * 1.1;
text-transform: uppercase;
}
Expand Down
28 changes: 17 additions & 11 deletions clayui.com/src/styles/site/_content-site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@
margin-bottom: 1rem;
}

h1, h2, h3 {
color: $gray-800;
font-weight: 800;
margin: $base-size 0;
line-height: 1.25;
letter-spacing: 0.4px;

@media (min-width: $grid-float-breakpoint) {
margin-bottom: $base-size;
margin-top: $base-size * 2;
.clay-site-container.container-fluid,
.container-fluid > .row > .col-md-12 > div,
article {
> h1,
> h2,
> h3 {
color: $gray-800;
font-weight: 800;
margin: $base-size 0;
line-height: 1.25;
letter-spacing: 0.4px;

@media (min-width: $grid-float-breakpoint) {
margin-bottom: $base-size;
margin-top: $base-size * 2;
}
}
}

Expand All @@ -23,7 +29,7 @@
margin-top: 80px;
}

.container-fluid > h1 {
.clay-site-container.container-fluid > h1 {
margin: 0;
}
}
Expand Down

0 comments on commit aaba6cb

Please sign in to comment.