This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ if current.path[4] && current.path[3] == 'api'
8
8
- var textFormat = ' is-standard-case'
9
9
10
10
header( class ="hero background-sky" )
11
- h1( class ="hero-title text-display-1 #{textFormat} " ) #{headerTitle}
12
- if useBadges
11
+ div( class ="inner-header" )
12
+ h1( class ="hero-title text-display-1 #{textFormat} " ) #{headerTitle}
13
+ if useBadges
13
14
span( class ="badges" )
14
15
if docType
15
16
span( class ="status-badge" ) .
Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ $hero-padding: ($unit * 10) ($unit * 6) ($unit * 7);
35
35
screen and (max-width : $tablet-breakpoint ) {
36
36
height : auto ;
37
37
padding-top : 40px ;
38
-
39
- .badges {
40
- margin-top : $unit * 6 ;
41
- }
42
38
}
43
39
44
40
& .is-large {
@@ -53,8 +49,18 @@ $hero-padding: ($unit * 10) ($unit * 6) ($unit * 7);
53
49
}
54
50
}
55
51
52
+ .inner-header {
53
+ display : flex ;
54
+ justify-items : center ;
55
+ flex-wrap : wrap ;
56
+
57
+ @media screen and (max-width : 599px ) {
58
+ margin : ($unit * 6 ) 0px 0px 0px ;
59
+ }
60
+ }
61
+
56
62
.badges {
57
- padding-left : 8 px ;
63
+ margin-top : 4 px ;
58
64
59
65
.status-badge {
60
66
color : #0143A3 ;
@@ -73,10 +79,6 @@ $hero-padding: ($unit * 10) ($unit * 6) ($unit * 7);
73
79
}
74
80
75
81
@media screen and (max-width : 599px ) {
76
- .badges {
77
- margin-top : $unit ;
78
- padding-left : 0 ;
79
- }
80
82
81
83
.hero-title-with-badges {
82
84
margin-bottom : $unit * 2 ;
@@ -92,6 +94,7 @@ $hero-padding: ($unit * 10) ($unit * 6) ($unit * 7);
92
94
display : inline ; // title will be inline with badges
93
95
text-transform : uppercase ;
94
96
margin : 0 ;
97
+ margin-right : 8px ;
95
98
opacity : .87 ;
96
99
97
100
& .is-standard-case {
@@ -101,7 +104,8 @@ $hero-padding: ($unit * 10) ($unit * 6) ($unit * 7);
101
104
@media handheld and (max-width : $phone-breakpoint ),
102
105
screen and (max-device-width : $phone-breakpoint ),
103
106
screen and (max-width : $tablet-breakpoint ) {
104
- margin : ($unit * 6 ) 0px 0px 0px ;
107
+ // reduce size of api doc title on small screens, prevents cut text on long titles
108
+ font-size : 28px ;
105
109
}
106
110
}
107
111
You can’t perform that action at this time.
0 commit comments