File tree Expand file tree Collapse file tree 13 files changed +161
-230
lines changed Expand file tree Collapse file tree 13 files changed +161
-230
lines changed Original file line number Diff line number Diff line change 11FLASK_ENV = development
22SECRET_KEY = " HGuitfI&uf6i7r&ujHFc"
33FLASK_DEBUG = False
4- LESS_BIN = " /Users/myuser/.nvm/versions/node/v18.18.1/ bin/lessc "
4+ LESS_BIN = " /usr/ bin/less "
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff line change 1111 }
1212}
1313nav .nav-wrapper {
14- width : 915 px ;
15- max-width : 80 vw ;
14+ width : 650 px ;
15+ max-width : 85 vw ;
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}
3636nav .nav-wrapper .left-nav a {
37- margin-right : 20 px ;
37+ margin-right : 30 px ;
3838 font-weight : 400 ;
3939}
4040nav a {
5757}
5858body .container ,
5959html .container {
60- width : 850 px ;
61- max-width : 80 vw ;
62- min- height: 100 % ;
60+ width : 590 px ;
61+ max-width : 590 px ;
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 {
9697body .container p ,
9798html .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}
102103ul {
103104 list-style : none;
@@ -138,7 +139,7 @@ nav {
138139 }
139140}
140141nav .nav-wrapper {
141- width : 915 px ;
142+ width : 650 px ;
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}
163164nav .nav-wrapper .left-nav a {
164- margin-right : 20 px ;
165+ margin-right : 30 px ;
165166 font-weight : 400 ;
166167}
167168nav a {
Original file line number Diff line number Diff line change 1111 }
1212}
1313nav .nav-wrapper {
14- width : 915 px ;
15- max-width : 80 vw ;
14+ width : 650 px ;
15+ max-width : 85 vw ;
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}
3636nav .nav-wrapper .left-nav a {
37- margin-right : 20 px ;
37+ margin-right : 30 px ;
3838 font-weight : 400 ;
3939}
4040nav a {
5757}
5858body .container ,
5959html .container {
60- width : 850 px ;
61- max-width : 80 vw ;
62- min- height: 100 % ;
60+ width : 590 px ;
61+ max-width : 590 px ;
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 {
9697body .container p ,
9798html .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}
102103ul {
103104 list-style : none;
@@ -138,7 +139,7 @@ nav {
138139 }
139140}
140141nav .nav-wrapper {
141- width : 915 px ;
142+ width : 650 px ;
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}
163164nav .nav-wrapper .left-nav a {
164- margin-right : 20 px ;
165+ margin-right : 30 px ;
165166 font-weight : 400 ;
166167}
167168nav a {
Original file line number Diff line number Diff line change @@ -11,16 +11,17 @@ html {
1111 height : 100% ;
1212
1313 .container {
14- width : 850 px ;
15- max-width : 80 vw ;
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 ) {
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}
Original file line number Diff line number Diff line change 1111 }
1212
1313 .nav-wrapper {
14- width : 915 px ;
14+ width : @nav-width-fullscreen ;
1515 max-width : 85vw ;
1616 display : flex ;
1717 justify-content : space-between ;
3333 }
3434
3535 a {
36- margin-right : 20 px ;
36+ margin-right : 30 px ;
3737 font-weight : 400 ;
3838 }
3939 }
Original file line number Diff line number Diff line change 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 ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 1212proc_name = "flaskassets"
1313wsgi_app = "wsgi:app"
1414bind = "unix:flask.sock"
15- threads = 4
15+ threads = 2
1616workers = 2
1717
1818if ENVIRONMENT == "development" :
You can’t perform that action at this time.
0 commit comments