-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up announcement banner implementation (#6408)
Better aligns the banner with docs.flutter.dev and also places the "skip to main content" button before the banner in the tab order for improved accessibility. Contributes to #6406
- Loading branch information
Showing
7 changed files
with
38 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
<div class="banner"> | ||
<p> | ||
Dart 3.6 is here! Read the | ||
<a href="https://medium.com/dartlang/announcing-dart-3-6-778dd7a80983" target="_blank">blog post</a> | ||
to learn about new features in pub and the language. | ||
</p> | ||
</div> | ||
Dart 3.6 is here! | ||
<a href="https://medium.com/dartlang/announcing-dart-3-6-778dd7a80983" target="_blank">Learn more</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,37 @@ | ||
@use 'sass:color'; | ||
|
||
@use '../core/variables' as *; | ||
|
||
.banner { | ||
position: relative; | ||
background-color: $dash-callout; | ||
padding: 12px 0; | ||
#site-banner { | ||
display: flex; | ||
width: 100%; | ||
justify-content: center; | ||
align-items: center; | ||
font-family: $site-font-family-alt; | ||
font-size: 1rem; | ||
|
||
gap: 0.5rem; | ||
padding: 0.75rem; | ||
text-align: center; | ||
z-index: 500; | ||
background-color: $dash-callout; | ||
color: $site-color-white; | ||
|
||
p { | ||
font-family: $site-font-family-alt; | ||
font-size: 16px; | ||
|
||
color: white; | ||
|
||
overflow-wrap: anywhere; | ||
word-break: normal; | ||
margin: 0; | ||
padding-left: 1em; | ||
padding-right: 1em; | ||
flex-grow: 1; | ||
} | ||
|
||
a { | ||
color: $site-color-card-link; | ||
a, button { | ||
color: $site-color-card-link; | ||
|
||
&:hover { | ||
color: color.mix($site-color-white, $site-color-card-link, 25%); | ||
} | ||
|
||
&:hover, &:focus, &:active { | ||
color: darken($site-color-card-link, 20%); | ||
} | ||
&:active { | ||
color: color.mix($site-color-white, $site-color-card-link, 50%); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters