Skip to content

Commit c02410d

Browse files
author
Tim Bannister
committed
Move announcement styles into Sass
1 parent 20d8b28 commit c02410d

File tree

3 files changed

+61
-53
lines changed

3 files changed

+61
-53
lines changed

assets/scss/_custom.scss

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,3 +578,64 @@ body.td-documentation {
578578
color: black;
579579
text-decoration: none !important;
580580
}
581+
582+
@media print {
583+
/* Do not print announcements */
584+
#announcement, section#announcement, #fp-announcement, section#fp-announcement {
585+
display: none;
586+
}
587+
}
588+
589+
#announcement, #fp-announcement {
590+
> * {
591+
color: inherit;
592+
background: inherit;
593+
}
594+
595+
a {
596+
color: inherit;
597+
border-bottom: 1px solid #fff;
598+
}
599+
600+
a:hover {
601+
color: inherit;
602+
border-bottom: none;
603+
}
604+
}
605+
606+
#announcement {
607+
padding-top: 105px;
608+
padding-bottom: 25px;
609+
}
610+
611+
.header-hero {
612+
padding-top: 40px;
613+
}
614+
615+
/* Extra announcement height only for landscape viewports */
616+
@media (min-aspect-ratio: 8/9) {
617+
#fp-announcement {
618+
min-height: 25vh;
619+
}
620+
}
621+
622+
#fp-announcement aside {
623+
padding-top: 115px;
624+
padding-bottom: 25px;
625+
}
626+
627+
.announcement {
628+
.content {
629+
margin-bottom: 0px;
630+
}
631+
632+
633+
> p {
634+
.gridPage #announcement .content p,
635+
.announcement > h4,
636+
.announcement > h3 {
637+
color: #ffffff;
638+
}
639+
}
640+
}
641+

layouts/partials/css.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515

1616
<link rel="stylesheet" href="{{ "css/feature-states.css" | relURL }}">
1717

18-
{{- if .Site.Params.announcement }}
19-
<link rel="stylesheet" href="{{ "css/announcement.css" | relURL }}">
20-
{{- end }}
21-
2218
{{- if or (eq .Params.class "gridPage") (eq .Params.class "gridPage gridPageHome") }}
2319
<link rel="stylesheet" href="{{ "css/gridpage.css" | relURL }}">
2420
{{- end }}

static/css/announcement.css

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)