Skip to content

Commit

Permalink
Style main element instead of role=main
Browse files Browse the repository at this point in the history
  • Loading branch information
devanubis committed Jun 2, 2023
1 parent e221156 commit 8c4d252
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion djangoproject/scss/_dashboard.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#dashboard {
.full-width [role="main"] {
.full-width main {
margin: 0 auto;
text-align: center;
}
Expand Down
8 changes: 4 additions & 4 deletions djangoproject/scss/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ h1 {
color: var(--body-fg);
}

[role="main"] & {
main & {
@include font-size(32);
margin: 40px 0px 30px;
color: var(--body-fg);
Expand Down Expand Up @@ -155,7 +155,7 @@ h2 {
}
}

[role="main"] & {
main & {
margin-top: 40px;
margin-bottom: 15px;
}
Expand Down Expand Up @@ -232,7 +232,7 @@ a:focus {
p {

//increase top margin if first item in container
[role="main"]>&:first-child {
main>&:first-child {
margin-top: 30px;
}
}
Expand Down Expand Up @@ -270,7 +270,7 @@ blockquote {
//------------------- Layout


[role="main"] {
main {
//Main column. Left aligned by default. See /styleguide for explanation.
background: var(--white-color);
padding: 1px 10px 40px;
Expand Down

0 comments on commit 8c4d252

Please sign in to comment.