Skip to content

Commit d747b8a

Browse files
committed
Update responsive styles.
1 parent d5d1e74 commit d747b8a

File tree

8 files changed

+40
-48
lines changed

8 files changed

+40
-48
lines changed

class_views/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from django.core.mail import send_mail
77
from django.http import HttpResponseRedirect
88
from django.shortcuts import get_object_or_404, render
9-
109
from django.views import View
1110
from django.views.generic import RedirectView
1211
from django.views.generic.base import TemplateView
@@ -18,6 +17,7 @@
1817

1918
class GenericClassView(View):
2019
"""Generic class-based view."""
20+
2121
form_class = ContactForm
2222
initial = {"key": "value"}
2323
template_name = "form_template.html"

homepage/static/homepage/css/home.css

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@
3939
.section-title {
4040
font-size: 1.1em !important;
4141
}
42-
43-
.card {
44-
margin: 40px auto 0;
45-
padding: 40px 20px;
46-
width: 90%;
47-
max-width: unset;
48-
}
4942
}
5043

5144
@media (max-width: 600px) {
@@ -67,7 +60,6 @@
6760
}
6861

6962
.card {
70-
padding: 35px 25px;
7163
margin: 0;
7264
height: 100%;
7365
}
@@ -147,7 +139,8 @@ svg {
147139
content: " ";
148140
}
149141

150-
.tooltip-toggle::before, .tooltip-toggle::after {
142+
.tooltip-toggle::before,
143+
.tooltip-toggle::after {
151144
color: #efefef;
152145
font-family: monospace;
153146
font-size: 16px;
@@ -156,7 +149,10 @@ svg {
156149
pointer-events: none;
157150
}
158151

159-
.tooltip-toggle:focus::before, .tooltip-toggle:focus::after, .tooltip-toggle:hover::before, .tooltip-toggle:hover::after {
152+
.tooltip-toggle:focus::before,
153+
.tooltip-toggle:focus::after,
154+
.tooltip-toggle:hover::before,
155+
.tooltip-toggle:hover::after {
160156
-webkit-transition: all 0.75s ease;
161157
opacity: 1;
162158
transition: all 0.75s ease;
@@ -165,6 +161,5 @@ svg {
165161
.fas,
166162
i {
167163
font-size: .9em;
168-
margin-left: 3px;
169164
opacity: .5;
170-
}
165+
}

homepage/static/homepage/css/styles.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ a {
3535
color: #0297f6;
3636
font-weight: 500;
3737
text-decoration: none;
38+
white-space: nowrap;
3839
transition: all .2s ease;
3940
}
4041

@@ -49,19 +50,15 @@ a:hover {
4950

5051
.card {
5152
width: 900px;
52-
max-width: 93%;
53+
max-width: 90vw;
5354
height: fit-content;
54-
margin: 80px auto 0;
55-
padding: 50px;
55+
margin: 5vw 5vw 0;
56+
padding: 5vw;
5657
background: white;
5758
box-shadow: 0 0 5px rgba(65, 67, 144, 0.15);
5859
}
5960

6061
@media (max-width: 800px) {
61-
.card {
62-
padding: 40px 0;
63-
width: unset;
64-
}
6562

6663
.apps-container {
6764
justify-content: space-between;

poetry.lock

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ python-dotenv==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
66
sqlparse==0.4.4 ; python_version >= "3.10" and python_version < "4.0"
77
typing-extensions==4.9.0 ; python_version >= "3.10" and python_version < "3.11"
88
tzdata==2023.4 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "win32"
9+
uwsgi==2.0.23 ; python_version >= "3.10" and python_version < "4.0"

static/homepage/css/home.css

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
.section-title {
4040
font-size: 1.1em !important;
4141
}
42+
}
4243

44+
@media(max-width: 800px) {
4345
.card {
44-
margin: 40px auto 0;
45-
padding: 40px 20px;
46-
width: 90%;
47-
max-width: unset;
46+
margin: 0;
47+
width: 100%;
4848
}
4949
}
5050

@@ -65,12 +65,6 @@
6565
.section-title {
6666
font-size: 1.4em !important;
6767
}
68-
69-
.card {
70-
padding: 35px 25px;
71-
margin: 0;
72-
height: 100%;
73-
}
7468
}
7569

7670
.part-title {
@@ -147,7 +141,8 @@ svg {
147141
content: " ";
148142
}
149143

150-
.tooltip-toggle::before, .tooltip-toggle::after {
144+
.tooltip-toggle::before,
145+
.tooltip-toggle::after {
151146
color: #efefef;
152147
font-family: monospace;
153148
font-size: 16px;
@@ -156,7 +151,10 @@ svg {
156151
pointer-events: none;
157152
}
158153

159-
.tooltip-toggle:focus::before, .tooltip-toggle:focus::after, .tooltip-toggle:hover::before, .tooltip-toggle:hover::after {
154+
.tooltip-toggle:focus::before,
155+
.tooltip-toggle:focus::after,
156+
.tooltip-toggle:hover::before,
157+
.tooltip-toggle:hover::after {
160158
-webkit-transition: all 0.75s ease;
161159
opacity: 1;
162160
transition: all 0.75s ease;
@@ -165,6 +163,5 @@ svg {
165163
.fas,
166164
i {
167165
font-size: .9em;
168-
margin-left: 3px;
169166
opacity: .5;
170-
}
167+
}

static/homepage/css/styles.css

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,16 @@ a:hover {
4949

5050
.card {
5151
width: 900px;
52-
max-width: 93%;
53-
height: fit-content;
54-
margin: 80px auto 0;
55-
padding: 50px;
52+
margin: 5vw 5vw 0;
53+
padding: 5vw;
5654
background: white;
5755
box-shadow: 0 0 5px rgba(65, 67, 144, 0.15);
5856
}
5957

6058
@media (max-width: 800px) {
6159
.card {
62-
padding: 40px 0;
63-
width: unset;
60+
margin: 0;
61+
width: 100%;
6462
}
6563

6664
.apps-container {
@@ -84,13 +82,7 @@ a:hover {
8482
}
8583
}
8684

87-
@media (max-width: 600px) {
88-
.card {
89-
width: 90%;
90-
padding: 30px;
91-
margin: 0;
92-
}
93-
85+
@media (max-width: 800px) {
9486
.app {
9587
margin-bottom: 30px;
9688
}

static/homepage/img/logo.png

6.74 KB
Loading

0 commit comments

Comments
 (0)