Skip to content

Commit a9d69d3

Browse files
committed
adding main.less from PR angular-fullstack#637 (generator-angular)
1 parent e60ba5d commit a9d69d3

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

app/templates/styles/main.less

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<% if (less && bootstrap) { %>
2+
@import 'bootstrap/less/bootstrap';
3+
<% } %>
4+
5+
/* Space out content a bit */
6+
body {
7+
padding-top: 20px;
8+
padding-bottom: 20px;
9+
}
10+
11+
/* Everything but the jumbotron gets side spacing for mobile first views */
12+
.header,
13+
.marketing,
14+
.footer {
15+
padding-left: 15px;
16+
padding-right: 15px;
17+
}
18+
19+
/* Custom page header */
20+
.header {
21+
border-bottom: 1px solid #e5e5e5;
22+
}
23+
/* Make the masthead heading the same height as the navigation */
24+
.header h3 {
25+
margin-top: 0;
26+
margin-bottom: 0;
27+
line-height: 40px;
28+
padding-bottom: 19px;
29+
}
30+
31+
/* Custom page footer */
32+
.footer {
33+
padding-top: 19px;
34+
color: #777;
35+
border-top: 1px solid #e5e5e5;
36+
}
37+
38+
/* Customize container */
39+
@media (min-width: 768px) {
40+
.container {
41+
max-width: 730px;
42+
}
43+
}
44+
.container-narrow > hr {
45+
margin: 30px 0;
46+
}
47+
48+
/* Main marketing message and sign up button */
49+
.jumbotron {
50+
text-align: center;
51+
border-bottom: 1px solid #e5e5e5;
52+
}
53+
.jumbotron .btn {
54+
font-size: 21px;
55+
padding: 14px 24px;
56+
}
57+
58+
/* Supporting marketing content */
59+
.marketing {
60+
margin: 40px 0;
61+
}
62+
.marketing p + h4 {
63+
margin-top: 28px;
64+
}
65+
66+
/* Responsive: Portrait tablets and up */
67+
@media screen and (min-width: 768px) {
68+
/* Remove the padding we set earlier */
69+
.header,
70+
.marketing,
71+
.footer {
72+
padding-left: 0;
73+
padding-right: 0;
74+
}
75+
/* Space out the masthead */
76+
.header {
77+
margin-bottom: 30px;
78+
}
79+
/* Remove the bottom border on the jumbotron for visual effect */
80+
.jumbotron {
81+
border-bottom: 0;
82+
}
83+
}

0 commit comments

Comments
 (0)