header.css

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/css/components/regions/header/header.css
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/components/regions/header/header.css
  2. 8.9.x core/themes/bartik/css/components/header.css
  3. 10 core/profiles/demo_umami/themes/umami/components/header/header.css
  4. 10 core/profiles/demo_umami/themes/umami/css/components/regions/header/header.css
  5. 11.x core/profiles/demo_umami/themes/umami/components/header/header.css
  6. 11.x core/profiles/demo_umami/themes/umami/css/components/regions/header/header.css
/* ------------------ Header ------------------ */
#header {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.header .section {
  position: relative;
}
.region-header {
  padding: 0.357em 15px 0;
}
.region-header .site-branding {
  margin-top: 0.429em;
}

@media all and (min-width: 461px) {
  .region-header .block {
    float: right; /* LTR */
    margin-top: 0.357em;
  }
  [dir="rtl"] .region-header .block {
    float: left;
  }
  .region-header .site-branding {
    float: left; /* LTR */
    /* margin-bottom: 1.857em; */
  }
  [dir="rtl"] .region-header .site-branding {
    float: right;
  }
}

@media screen and (max-width: 460px) {
  .region-header {
    padding-bottom: 0.357em;
  }
}
/* Region header blocks. */
.region-header .block:not(.site-branding) {
  clear: right;
  margin: 0 0 1em;
  font-size: 0.857em;
}

@media all and (min-width: 901px) {
  .region-header .block:not(.site-branding) {
    margin: 1.167em 0 1em;
  }
}
.region-header .block > h2 {
  /* @extend .visually-hidden */
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
}
.header .block .content {
  margin: 0;
  padding: 0;
}
.region-header .block ul {
  padding: 0;
}
.region-header .block li {
  padding: 0;
  list-style: none;
  list-style-image: none;
}
.region-header .branding {
  font-size: 1em;
}
.region-header .form-text {
  width: 120px;
  margin-right: 2px; /* LTR */
  border-color: #ccc;
  border-color: rgba(255, 255, 255, 0.3);
  background: #fefefe;
  background: rgba(255, 255, 255, 0.7);
}
[dir="rtl"] .region-header .form-text {
  margin-right: 0;
  margin-left: 2px;
}
.region-header .form-text:hover,
.region-header .form-text:focus,
.region-header .form-text:active {
  background: #fff;
  background: rgba(255, 255, 255, 0.8);
}
.region-header .form-required:after {
  background-image: url(../../images/required.svg);
}
/* Region header block menus. */
.region-header .block-menu {
  width: 208px;
  padding: 0;
  border: 1px solid;
  border-color: #eee;
  border-color: rgba(255, 255, 255, 0.2);
}
.region-header .block-menu li a {
  display: block;
  padding: 3px 7px;
  border-bottom: 1px solid;
  border-bottom-color: #eee;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.region-header .block-menu li a:hover,
.region-header .block-menu li a:focus,
.region-header .block-menu li a:active {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
}
.region-header .block-menu li:last-child a {
  border-bottom: 0;
}
/* User Login block in the header region. */
.region-header #block-user-login {
  width: auto;
}
.region-header #block-user-login .content {
  margin-top: 2px;
}
.region-header #block-user-login .form-item {
  float: left; /* LTR */
  margin: 0;
  padding: 0;
}
.region-header #block-user-login div.item-list,
.region-header #block-user-login div.description {
  margin: 0;
  font-size: 0.916em;
}
.region-header #block-user-login div.item-list {
  clear: both;
}
.region-header #block-user-login div.description {
  display: inline;
}
.region-header #block-user-login .item-list ul {
  padding: 0;
  line-height: 1;
}
.region-header #block-user-login .item-list li {
  float: left; /* LTR */
  padding: 3px 0 1px;
  list-style: none;
}
.region-header #block-user-login .item-list li:last-child {
  padding-left: 0.5em; /* LTR */
}
[dir="rtl"] .region-header #block-user-login .item-list li:last-child {
  padding-right: 0.5em;
  padding-left: 0;
}
.region-header #block-user-login .form-actions {
  clear: both;
  margin: 4px 0 0;
  padding: 0;
}
.region-header #block-user-login input.form-submit {
  margin: 4px 0;
  padding: 3px 8px;
  border: 1px solid;
  border-color: #ccc;
  border-color: rgba(255, 255, 255, 0.5);
  background: #eee;
  background: rgba(255, 255, 255, 0.7);
}
.region-header #block-user-login input.form-submit:hover,
.region-header #block-user-login input.form-submit:focus {
  background: #fff;
  background: rgba(255, 255, 255, 0.9);
}
/* Search block in header region. */
.region-header #block-search-form {
  width: 208px;
}
.region-header #block-search-form .form-text {
  width: 154px;
}
.region-header .search-block-form {
  float: right; /* LTR */
}
[dir="rtl"] .region-header .search-block-form {
  float: left;
}

/* Language switcher block in header region. */
.region-header .block-locale ul li {
  display: inline;
  padding: 0 0.5em;
}
[role*=banner] a {
  border-bottom: none;
}

[dir="rtl"] .branding,
[dir="rtl"] .site-logo,
[dir="rtl"] .site-branding-text,
[dir="rtl"] .region-header #block-user-login .form-item,
[dir="rtl"] .region-header #block-user-login .item-list li {
  float: right;
}

File

core/themes/bartik/css/components/header.css

View source
  1. /* ------------------ Header ------------------ */
  2. #header {
  3. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  4. }
  5. .header .section {
  6. position: relative;
  7. }
  8. .region-header {
  9. padding: 0.357em 15px 0;
  10. }
  11. .region-header .site-branding {
  12. margin-top: 0.429em;
  13. }
  14. @media all and (min-width: 461px) {
  15. .region-header .block {
  16. float: right; /* LTR */
  17. margin-top: 0.357em;
  18. }
  19. [dir="rtl"] .region-header .block {
  20. float: left;
  21. }
  22. .region-header .site-branding {
  23. float: left; /* LTR */
  24. /* margin-bottom: 1.857em; */
  25. }
  26. [dir="rtl"] .region-header .site-branding {
  27. float: right;
  28. }
  29. }
  30. @media screen and (max-width: 460px) {
  31. .region-header {
  32. padding-bottom: 0.357em;
  33. }
  34. }
  35. /* Region header blocks. */
  36. .region-header .block:not(.site-branding) {
  37. clear: right;
  38. margin: 0 0 1em;
  39. font-size: 0.857em;
  40. }
  41. @media all and (min-width: 901px) {
  42. .region-header .block:not(.site-branding) {
  43. margin: 1.167em 0 1em;
  44. }
  45. }
  46. .region-header .block > h2 {
  47. /* @extend .visually-hidden */
  48. position: absolute !important;
  49. overflow: hidden;
  50. clip: rect(1px, 1px, 1px, 1px);
  51. height: 1px;
  52. }
  53. .header .block .content {
  54. margin: 0;
  55. padding: 0;
  56. }
  57. .region-header .block ul {
  58. padding: 0;
  59. }
  60. .region-header .block li {
  61. padding: 0;
  62. list-style: none;
  63. list-style-image: none;
  64. }
  65. .region-header .branding {
  66. font-size: 1em;
  67. }
  68. .region-header .form-text {
  69. width: 120px;
  70. margin-right: 2px; /* LTR */
  71. border-color: #ccc;
  72. border-color: rgba(255, 255, 255, 0.3);
  73. background: #fefefe;
  74. background: rgba(255, 255, 255, 0.7);
  75. }
  76. [dir="rtl"] .region-header .form-text {
  77. margin-right: 0;
  78. margin-left: 2px;
  79. }
  80. .region-header .form-text:hover,
  81. .region-header .form-text:focus,
  82. .region-header .form-text:active {
  83. background: #fff;
  84. background: rgba(255, 255, 255, 0.8);
  85. }
  86. .region-header .form-required:after {
  87. background-image: url(../../images/required.svg);
  88. }
  89. /* Region header block menus. */
  90. .region-header .block-menu {
  91. width: 208px;
  92. padding: 0;
  93. border: 1px solid;
  94. border-color: #eee;
  95. border-color: rgba(255, 255, 255, 0.2);
  96. }
  97. .region-header .block-menu li a {
  98. display: block;
  99. padding: 3px 7px;
  100. border-bottom: 1px solid;
  101. border-bottom-color: #eee;
  102. border-bottom-color: rgba(255, 255, 255, 0.2);
  103. }
  104. .region-header .block-menu li a:hover,
  105. .region-header .block-menu li a:focus,
  106. .region-header .block-menu li a:active {
  107. text-decoration: none;
  108. background: rgba(255, 255, 255, 0.15);
  109. }
  110. .region-header .block-menu li:last-child a {
  111. border-bottom: 0;
  112. }
  113. /* User Login block in the header region. */
  114. .region-header #block-user-login {
  115. width: auto;
  116. }
  117. .region-header #block-user-login .content {
  118. margin-top: 2px;
  119. }
  120. .region-header #block-user-login .form-item {
  121. float: left; /* LTR */
  122. margin: 0;
  123. padding: 0;
  124. }
  125. .region-header #block-user-login div.item-list,
  126. .region-header #block-user-login div.description {
  127. margin: 0;
  128. font-size: 0.916em;
  129. }
  130. .region-header #block-user-login div.item-list {
  131. clear: both;
  132. }
  133. .region-header #block-user-login div.description {
  134. display: inline;
  135. }
  136. .region-header #block-user-login .item-list ul {
  137. padding: 0;
  138. line-height: 1;
  139. }
  140. .region-header #block-user-login .item-list li {
  141. float: left; /* LTR */
  142. padding: 3px 0 1px;
  143. list-style: none;
  144. }
  145. .region-header #block-user-login .item-list li:last-child {
  146. padding-left: 0.5em; /* LTR */
  147. }
  148. [dir="rtl"] .region-header #block-user-login .item-list li:last-child {
  149. padding-right: 0.5em;
  150. padding-left: 0;
  151. }
  152. .region-header #block-user-login .form-actions {
  153. clear: both;
  154. margin: 4px 0 0;
  155. padding: 0;
  156. }
  157. .region-header #block-user-login input.form-submit {
  158. margin: 4px 0;
  159. padding: 3px 8px;
  160. border: 1px solid;
  161. border-color: #ccc;
  162. border-color: rgba(255, 255, 255, 0.5);
  163. background: #eee;
  164. background: rgba(255, 255, 255, 0.7);
  165. }
  166. .region-header #block-user-login input.form-submit:hover,
  167. .region-header #block-user-login input.form-submit:focus {
  168. background: #fff;
  169. background: rgba(255, 255, 255, 0.9);
  170. }
  171. /* Search block in header region. */
  172. .region-header #block-search-form {
  173. width: 208px;
  174. }
  175. .region-header #block-search-form .form-text {
  176. width: 154px;
  177. }
  178. .region-header .search-block-form {
  179. float: right; /* LTR */
  180. }
  181. [dir="rtl"] .region-header .search-block-form {
  182. float: left;
  183. }
  184. /* Language switcher block in header region. */
  185. .region-header .block-locale ul li {
  186. display: inline;
  187. padding: 0 0.5em;
  188. }
  189. [role*=banner] a {
  190. border-bottom: none;
  191. }
  192. [dir="rtl"] .branding,
  193. [dir="rtl"] .site-logo,
  194. [dir="rtl"] .site-branding-text,
  195. [dir="rtl"] .region-header #block-user-login .form-item,
  196. [dir="rtl"] .region-header #block-user-login .item-list li {
  197. float: right;
  198. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.