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