Skip to content

Commit 3a425ea

Browse files
committed
Merge pull request #632 from hannu/header-fix
Fix header element in the demo styleguide
2 parents 4f41502 + e6bfc96 commit 3a425ea

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

lib/app/sass/app.scss

+18-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ body.sg {
3030
border: 0;
3131
}
3232

33-
.sg.clear {
34-
clear: both;
35-
}
36-
3733
// Colors and typography
3834
//
3935
// This section describes base colors and typography
@@ -379,6 +375,15 @@ input.sg {
379375
@include media($mobile) {
380376
padding-right: 0;
381377
}
378+
379+
&:after {
380+
visibility: hidden;
381+
display: block;
382+
font-size: 0;
383+
content: " ";
384+
clear: both;
385+
height: 0;
386+
}
382387
}
383388

384389
.title {
@@ -584,6 +589,15 @@ input.sg {
584589
float: none;
585590
}
586591
}
592+
593+
&:after {
594+
visibility: hidden;
595+
display: block;
596+
font-size: 0;
597+
content: " ";
598+
clear: both;
599+
height: 0;
600+
}
587601
}
588602

589603
.sg.toggle {

lib/app/views/main.html

-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ <h1 ng-if="status.hasError">Error: {{status.error.name}}</h1>
1818
type="search"
1919
ng-model-options="{ updateOn: 'default blur', debounce: {'default': 500, 'blur': 0} }"
2020
autofocus>
21-
<div class="sg clear"></div>
2221
</div>
2322
</header>
2423
<nav class="sg top-nav" ng-class="{'designerToolVisible' : designerTool.isVisible}">
@@ -49,7 +48,6 @@ <h1 ng-if="status.hasError">Error: {{status.error.name}}</h1>
4948
</li>
5049
</ul>
5150
</ul>
52-
<div class="sg clear"></div>
5351
</nav>
5452
<div class="sg wrapper full-height" ng-class="{'designerToolVisible' : designerTool.isVisible, 'collapsed' : isNavCollapsed}">
5553
<section ui-view class="sg body">

0 commit comments

Comments
 (0)