5 A navigational component which can display the current screen the user is on, along with additional controls or menu items.
7 The title bar includes classes to create center, left, and right sections, which can be used in any combination. However, in the markup, the sections must come in this order:
13 /// @Foundation.settings
15 $titlebar-center-width: 50% !default;
16 $titlebar-side-width: (100% - $titlebar-center-width) / 2 !default;
17 $titlebar-background: #eee !default;
18 $titlebar-color: #000 !default;
19 $titlebar-border: 1px solid #ccc !default;
20 $titlebar-padding: $global-padding !default;
21 $titlebar-item-classes: (
30 $center: map-get($titlebar-item-classes, center);
31 $left: map-get($titlebar-item-classes, left);
32 $right: map-get($titlebar-item-classes, right);
33 $title: map-get($titlebar-item-classes, title);
38 justify-content: flex-start;
41 // Denotes the title of the bar
46 // Denotes left, right, and center sections of the bar
47 .#{$left}, .#{$center}, .#{$right} {
52 // If only one section is in use, stretch it all the way out
53 &:first-child:last-child {
59 // Left always comes first, then center, then right
60 // The left and right sections have the same width
63 flex: 0 0 $titlebar-side-width;
67 flex: 0 0 $titlebar-center-width;
72 flex: 0 0 $titlebar-side-width;
76 // If only left and right are in use, stretch them both out equally
77 .#{$left}:first-child {
80 .#{$left}:first-child + .#{$right}:last-child {
84 // If only center and right are in use, shift the center section into the right position
85 .#{$center}:first-child:not(:last-child) {
86 margin-left: $titlebar-side-width;
88 // If only center and left are in use, override the above style
89 .#{$center} + .#{$left} {
90 margin-right: -($titlebar-side-width);
94 @mixin title-bar-style(
95 $background: $titlebar-background,
96 $color: $titlebar-color,
97 $border: $titlebar-border,
98 $padding: $titlebar-padding
100 background: $background;
103 border-bottom: $border;
107 $background: $titlebar-background,
108 $color: $titlebar-color,
109 $border: $titlebar-border,
110 $padding: $titlebar-padding
113 @include title-bar-style($background, $color, $border, $padding);
116 @include exports(title-bar) {
121 @include title-bar-style($primary-color, isitlight($primary-color));
122 a, a:hover { color: isitlight($primary-color); }
123 @if using(iconic) { .iconic { @include color-icon(isitlight($primary-color)); } }
126 @include title-bar-style($dark-color, #fff);
127 a, a:hover { color: #fff; }
128 @if using(iconic) { .iconic { @include color-icon(#fff); } }
133 border-top: $titlebar-border;