Skip to content

Commit 28fbccb

Browse files
committed
Minor style changes.
1 parent 82fbaac commit 28fbccb

File tree

13 files changed

+161
-230
lines changed

13 files changed

+161
-230
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FLASK_ENV=development
22
SECRET_KEY="HGuitfI&uf6i7r&ujHFc"
33
FLASK_DEBUG=False
4-
LESS_BIN="/Users/myuser/.nvm/versions/node/v18.18.1/bin/lessc"
4+
LESS_BIN="/usr/bin/less"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Flask-Assets Tutorial
22

33
![Python](https://img.shields.io/badge/Python-v3.12-blue.svg?logo=python&longCache=true&logoColor=white&colorB=5e81ac&style=flat-square&colorA=4c566a)
4-
![Flask](https://img.shields.io/badge/Flask-v3.0.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
4+
![Flask](https://img.shields.io/badge/Flask-v3.1.1-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
55
![Flask-Assets](https://img.shields.io/badge/Flask--Assets-v2.1.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
6-
![Gunicorn](https://img.shields.io/badge/Gunicorn-v21.2.0-blue.svg?longCache=true&logo=gunicorn&style=flat-square&logoColor=white&colorB=a3be8c&colorA=4c566a)
6+
![Gunicorn](https://img.shields.io/badge/Gunicorn-v23.0.0-blue.svg?longCache=true&logo=gunicorn&style=flat-square&logoColor=white&colorB=a3be8c&colorA=4c566a)
77
![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square&colorA=4c566a&colorB=a3be8c&logo=GitHub)
88
[![GitHub Issues](https://img.shields.io/github/issues/hackersandslackers/flask-assets-tutorial.svg?style=flat-square&colorA=4c566a&logo=GitHub&colorB=ebcb8b)](https://github.com/hackersandslackers/flask-assets-tutorial/issues)
99
[![GitHub Stars](https://img.shields.io/github/stars/hackersandslackers/flask-assets-tutorial.svg?style=flat-square&colorA=4c566a&logo=GitHub&colorB=ebcb8b)](https://github.com/hackersandslackers/flask-assets-tutorial/stargazers)

flask_assets_tutorial/static/dist/css/account.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ nav {
1111
}
1212
}
1313
nav .nav-wrapper {
14-
width: 915px;
15-
max-width: 80vw;
14+
width: 650px;
15+
max-width: 85vw;
1616
display: flex;
1717
justify-content: space-between;
1818
align-items: center;
@@ -34,7 +34,7 @@ nav .nav-wrapper .left-nav img {
3434
margin-right: 20px;
3535
}
3636
nav .nav-wrapper .left-nav a {
37-
margin-right: 20px;
37+
margin-right: 30px;
3838
font-weight: 400;
3939
}
4040
nav a {
@@ -57,9 +57,9 @@ html {
5757
}
5858
body .container,
5959
html .container {
60-
width: 850px;
61-
max-width: 80vw;
62-
min-height: 100%;
60+
width: 590px;
61+
max-width: 590px;
62+
height: 70%;
6363
background: white;
6464
margin: 40px auto 0;
6565
padding: 40px;
@@ -68,7 +68,8 @@ html .container {
6868
@media (max-width: 800px) {
6969
body .container,
7070
html .container {
71-
width: 100%;
71+
width: 80vw;
72+
max-width: unset;
7273
}
7374
}
7475
@media (max-width: 600px) {
@@ -96,8 +97,8 @@ html .container h1 {
9697
body .container p,
9798
html .container p {
9899
font-weight: 300;
99-
font-size: 1.1em;
100-
line-height: 1.4;
100+
font-size: 1em;
101+
line-height: 1.6;
101102
}
102103
ul {
103104
list-style: none;
@@ -138,7 +139,7 @@ nav {
138139
}
139140
}
140141
nav .nav-wrapper {
141-
width: 915px;
142+
width: 650px;
142143
max-width: 85vw;
143144
display: flex;
144145
justify-content: space-between;
@@ -161,7 +162,7 @@ nav .nav-wrapper .left-nav img {
161162
margin-right: 20px;
162163
}
163164
nav .nav-wrapper .left-nav a {
164-
margin-right: 20px;
165+
margin-right: 30px;
165166
font-weight: 400;
166167
}
167168
nav a {

flask_assets_tutorial/static/dist/css/landing.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ nav {
1111
}
1212
}
1313
nav .nav-wrapper {
14-
width: 915px;
15-
max-width: 80vw;
14+
width: 650px;
15+
max-width: 85vw;
1616
display: flex;
1717
justify-content: space-between;
1818
align-items: center;
@@ -34,7 +34,7 @@ nav .nav-wrapper .left-nav img {
3434
margin-right: 20px;
3535
}
3636
nav .nav-wrapper .left-nav a {
37-
margin-right: 20px;
37+
margin-right: 30px;
3838
font-weight: 400;
3939
}
4040
nav a {
@@ -57,9 +57,9 @@ html {
5757
}
5858
body .container,
5959
html .container {
60-
width: 850px;
61-
max-width: 80vw;
62-
min-height: 100%;
60+
width: 590px;
61+
max-width: 590px;
62+
height: 70%;
6363
background: white;
6464
margin: 40px auto 0;
6565
padding: 40px;
@@ -68,7 +68,8 @@ html .container {
6868
@media (max-width: 800px) {
6969
body .container,
7070
html .container {
71-
width: 100%;
71+
width: 80vw;
72+
max-width: unset;
7273
}
7374
}
7475
@media (max-width: 600px) {
@@ -96,8 +97,8 @@ html .container h1 {
9697
body .container p,
9798
html .container p {
9899
font-weight: 300;
99-
font-size: 1.1em;
100-
line-height: 1.4;
100+
font-size: 1em;
101+
line-height: 1.6;
101102
}
102103
ul {
103104
list-style: none;
@@ -138,7 +139,7 @@ nav {
138139
}
139140
}
140141
nav .nav-wrapper {
141-
width: 915px;
142+
width: 650px;
142143
max-width: 85vw;
143144
display: flex;
144145
justify-content: space-between;
@@ -161,7 +162,7 @@ nav .nav-wrapper .left-nav img {
161162
margin-right: 20px;
162163
}
163164
nav .nav-wrapper .left-nav a {
164-
margin-right: 20px;
165+
margin-right: 30px;
165166
font-weight: 400;
166167
}
167168
nav a {

flask_assets_tutorial/static/src/less/global.less

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ html {
1111
height: 100%;
1212

1313
.container {
14-
width: 850px;
15-
max-width: 80vw;
16-
min-height: 100%;
14+
width: @body-width-fullscreen;
15+
max-width: @body-width-fullscreen;
16+
height: 70%;
1717
background: white;
1818
margin: 40px auto 0;
1919
padding: 40px;
2020
box-shadow: 0 0 5px #bec6cf;
2121

2222
@media(max-width: @tablet-breakpoint) {
23-
width: 100%;
23+
width: 80vw;
24+
max-width: unset;
2425
}
2526

2627
@media(max-width: @mobile-breakpoint) {
@@ -45,8 +46,8 @@ html {
4546

4647
p {
4748
font-weight: 300;
48-
font-size: 1.1em;
49-
line-height: 1.4;
49+
font-size: 1em;
50+
line-height: 1.6;
5051
}
5152
}
5253
}

flask_assets_tutorial/static/src/less/nav.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ nav {
1111
}
1212

1313
.nav-wrapper {
14-
width: 915px;
14+
width: @nav-width-fullscreen;
1515
max-width: 85vw;
1616
display: flex;
1717
justify-content: space-between;
@@ -33,7 +33,7 @@ nav {
3333
}
3434

3535
a {
36-
margin-right: 20px;
36+
margin-right: 30px;
3737
font-weight: 400;
3838
}
3939
}

flask_assets_tutorial/static/src/less/variables.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
// Fonts
1111
@body-font: 'Poppins', sans-serif;
1212

13+
// Viewport size
14+
@body-width-fullscreen: 590px;
15+
@nav-width-fullscreen: 650px;
16+
1317
// Break points
1418
/* Breakpoints */
1519
@smallscreen-breakpoint: 950px;

flask_assets_tutorial/templates/analytics.jinja2

Lines changed: 0 additions & 14 deletions
This file was deleted.

flask_assets_tutorial/templates/layout.jinja2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
{# Scripts #}
2424
<script src="{{ url_for('static', filename='dist/js/main.min.js') }}"></script>
2525
{% block additionalscripts %}{% endblock %}
26-
{% include 'analytics.jinja2' %}
2726
</body>
2827

2928
</html>

gunicorn.conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
proc_name = "flaskassets"
1313
wsgi_app = "wsgi:app"
1414
bind = "unix:flask.sock"
15-
threads = 4
15+
threads = 2
1616
workers = 2
1717

1818
if ENVIRONMENT == "development":

0 commit comments

Comments
 (0)