footer.css
Same filename in this branch
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/css/components/regions/footer/footer.css
- 9 core/themes/olivero/css/components/footer.css
- 8.9.x core/profiles/demo_umami/themes/umami/css/components/regions/footer/footer.css
- 10 core/profiles/demo_umami/themes/umami/css/components/regions/footer/footer.css
- 10 core/themes/olivero/css/components/footer.css
This file is used to style the footer.
It styles the footer as a global component; it does not style individual footer items, such as a menu, which are styled by their own CSS files.
File
-
core/
profiles/ demo_umami/ themes/ umami/ css/ components/ regions/ footer/ footer.css
View source
- /**
- * @file
- * This file is used to style the footer.
- *
- * It styles the footer as a global component; it does not style individual
- * footer items, such as a menu, which are styled by their own CSS files.
- */
-
- .layout-footer {
- padding: 2rem 4%;
- text-align: center;
- color: #fff;
- background-color: #5f635d;
- font-size: 0.9rem;
- }
- .region-footer {
- display: flex;
- flex-direction: column;
- gap: 1.28rem;
- }
- /* Large */
- @media screen and (min-width: 60rem) {
- /* 960px */
- .layout-footer {
- text-align: left; /* LTR */
- }
- [dir="rtl"] .layout-footer {
- text-align: right;
- }
- .region-footer {
- flex-direction: row;
- justify-content: space-between;
- gap: 0;
- }
- }
- /* Extra large + side margins */
- @media screen and (min-width: 80rem) {
- /* 1200px (large) + 80px (side margins) = 1280px */
- .layout-footer {
- padding: 2rem 0;
- }
- }
-
- :where(.layout-footer) a {
- color: #fff;
- background-color: inherit;
- font-weight: 400;
- }
-
- :where(.layout-footer) a:active,
- :where(.layout-footer) a:focus,
- :where(.layout-footer) a:hover {
- outline-color: #fff;
- background-color: #000;
- }
-
- @media screen and (min-width: 60rem) {
- .block-type-footer-promo-block {
- overflow: hidden;
- flex-basis: 60%;
- }
-
- .block-system-menu-blockfooter {
- flex-basis: 25%;
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.