Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 43fa1be

Browse files
committed
fix(website): Misc responsive fixes #72
1 parent cd8ab34 commit 43fa1be

File tree

7 files changed

+123
-20
lines changed

7 files changed

+123
-20
lines changed

docs/source/stylesheets/components/_containers.scss

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,15 @@ section {
7575

7676
.fl-left {
7777
width: 100%;
78-
margin-top: $navigation-height;
78+
margin-top: $navigation-height * 1.5;
79+
max-width: 500px;
80+
float: none;
81+
margin-right: auto;
82+
margin-left: auto;
83+
84+
body.index &{
85+
margin-top: $navigation-height * 2;
86+
}
7987
}
8088

8189
.fl-right {
@@ -104,7 +112,7 @@ section {
104112

105113

106114
&.shrink {
107-
min-height: 314px
115+
min-height: 314px;
108116
}
109117

110118
.fl-right svg {
@@ -139,6 +147,7 @@ section {
139147

140148
.bloc-5 {
141149
margin-bottom: 40px;
150+
position: relative;
142151

143152
&:nth-child(1),
144153
&:nth-child(3) {
@@ -153,8 +162,30 @@ section {
153162
@include medium-mq {
154163
width: 100%;
155164
padding: 0 !important;
165+
166+
.bloc-3 {
167+
position: relative;
168+
height: 100%;
169+
170+
img {
171+
width: 100%;
172+
position: relative;
173+
top: 30px;
174+
left: -8px;
175+
}
176+
}
156177
}
157178

179+
@include tablet-mq-portrait {
180+
.bloc-7 {
181+
padding-right: 16px;
182+
}
183+
.bloc-3 img {
184+
max-width: 50%;
185+
top: 0;
186+
left: 0
187+
}
188+
}
158189
}
159190

160191
.bloc-3 {

docs/source/stylesheets/components/_documentation.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,13 @@
7777
margin-top: 40px;
7878
}
7979
}
80+
81+
.documentation .hero-section {
82+
.fl-left {
83+
max-width: 300px !important;
84+
width: 300px !important;
85+
}
86+
}
8087
}
8188
}
89+

docs/source/stylesheets/components/_footer.scss

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
background: $black;
104104
position: absolute;
105105
bottom: 0;
106-
height: $navigation-height;
106+
min-height: $navigation-height;
107107
text-align: center;
108108

109109
p {
@@ -167,7 +167,26 @@
167167
.action-footer {
168168
width: calc(16px + 100%);
169169
left: -16px;
170+
padding-bottom: 16px;
171+
text-align: center;
172+
173+
p {
174+
font-size: 12px;
175+
float: left;
176+
width: 100%;
177+
text-align: center;
178+
}
170179

180+
.btn,
181+
a:nth-child(2) {
182+
width: calc(100% - 32px);
183+
max-width: calc(100% - 32px);
184+
margin: 0 auto;
185+
margin-bottom: 8px;
186+
float: none;
187+
position: relative;
188+
left: 8px;
189+
}
171190
}
172191
}
173192
}

docs/source/stylesheets/components/_icons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
&-algolia-light {
19-
background: url($icon-algolia-light)no-repeat center center / contain
19+
background: url($icon-algolia-light)no-repeat center bottom / contain;
2020
}
2121

2222
&-mail {

docs/source/stylesheets/components/_navigation.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
.brand {
1414
float: left;
15+
16+
// Fix cross-rendering issues
17+
.icon.icon-algolia-light{
18+
background-position: center bottom;
19+
}
1520
}
1621

1722
a {
@@ -20,11 +25,6 @@
2025
padding-bottom: 8px;
2126
}
2227

23-
// .menu .icon {
24-
// width: 30px;
25-
// height: $navigation-height;
26-
// display: inline-block;
27-
// }
2828
.menu svg {
2929
width: 28px;
3030
height: 60px;

docs/source/stylesheets/components/_sidebar.scss

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ nav.sidebar {
5757
top: -16px;
5858
border: none;
5959

60-
61-
&.fixed {
62-
background: $brand-primary;
63-
color: #fff;
64-
top: $navigation-height;
65-
}
66-
6760
ul {
6861
width: 100%;
6962
padding: 0 16px;
@@ -76,12 +69,35 @@ nav.sidebar {
7669
height: 40px;
7770
line-height: 40px;
7871
margin-right: 8px;
72+
display: none;
73+
7974

8075
a {
8176
text-align: center;
8277
color: #fff;
78+
79+
&:focus,
80+
&:target {
81+
font-weight: bold;
82+
box-shadow: none;
83+
}
84+
}
85+
86+
&.active a {
87+
font-weight: bold;
88+
box-shadow: none;
8389
}
8490
}
8591
}
92+
93+
&.fixed {
94+
background: $brand-primary;
95+
color: #fff;
96+
top: $navigation-height;
97+
98+
ul li {
99+
display: inline-block;
100+
}
101+
}
86102
}
87103
}

docs/source/stylesheets/vendors/_mixins.scss

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Mixins
12
@mixin placeholder {
23
$placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
34
@each $placeholder in $placeholders {
@@ -18,11 +19,8 @@
1819
float: none;
1920
}
2021

21-
%active-links {
22-
color: $red-pink;
23-
box-shadow: inset -2px 0 0 0 $red-pink
24-
}
2522

23+
// Responsive Breakpoints
2624
@mixin big-min-mq {
2725
@media (min-width: $bp-big){
2826
@content
@@ -49,3 +47,34 @@
4947
@content
5048
}
5149
}
50+
@mixin tablet-mq-portrait {
51+
@media only screen
52+
and (min-device-width : 768px)
53+
and (max-device-width : 1024px)
54+
and (orientation : portrait) {
55+
@content
56+
}
57+
}
58+
@mixin tablet-mq-landscape {
59+
@media only screen
60+
and (min-device-width : 768px)
61+
and (max-device-width : 1024px)
62+
and (orientation : landscape) {
63+
@content
64+
}
65+
}
66+
67+
// Placeholders
68+
69+
%active-links {
70+
color: $red-pink;
71+
box-shadow: inset -2px 0 0 0 $red-pink;
72+
73+
@include small-mq {
74+
font-weight: bold;
75+
box-shadow: none;
76+
color: #fff;
77+
border-bottom: 2px solid $red-pink;
78+
79+
}
80+
}

0 commit comments

Comments
 (0)