Skip to content

Commit b28a619

Browse files
committed
Mobile Viewport Adjustments
1 parent 8ae4762 commit b28a619

File tree

5 files changed

+45
-21
lines changed

5 files changed

+45
-21
lines changed

src/app.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default {
5454
},
5555
5656
methods: {
57-
onUpdateTitle() {
57+
onUpdateTitle() {
5858
document.title = `${this.translatedRoute} | ${this.$tc('general.title')}`;
5959
},
6060
@@ -112,6 +112,7 @@ p:last-child {
112112
color: $color-accent;
113113
font-size: 32px;
114114
font-family: Dortmund, sans-serif;
115+
white-space: pre-wrap;
115116
}
116117
117118
.v-card-subtitle {

src/snippets/de-DE.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"about": "Über mich",
2020
"aboutTraining": "Ausbildung",
2121
"aboutPractice": "Berufserfahrung",
22-
"services": "Tätigkeitsspektrum"
22+
"services": "Tätigkeits­felder"
2323
},
2424
"subtitle": {
2525
"home": "Fachanwalt für: Miet- und WEG-Recht / Sozialrecht"

src/views/aboutRoute.vue

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,8 @@ export default {
7575
flex-wrap: wrap;
7676
white-space: pre-wrap;
7777
78-
&-card {
79-
max-width: 60%;
80-
padding: $spacer-md $spacer-xl;
81-
82-
&-entry {
83-
color: $color-accent;
84-
}
78+
&-card-entry {
79+
color: $color-accent;
8580
}
8681
8782
&-section {
@@ -99,10 +94,6 @@ export default {
9994
.v-list {
10095
background-color: transparent;
10196
}
102-
103-
.v-card-title, .v-card-subtitle {
104-
white-space: pre-wrap;
105-
}
10697
}
10798
10899
@media only screen and (max-width: 1000px) {
@@ -114,6 +105,10 @@ export default {
114105
padding: 0;
115106
padding-bottom: $spacer-md;
116107
}
108+
109+
&__content-image-src {
110+
margin-left: unset;
111+
}
117112
}
118113
}
119114
</style>

src/views/homeRoute.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,12 @@ export default {
4141
max-width: 60%;
4242
padding: 12px 24px;
4343
}
44-
44+
4545
&-image-src {
4646
width: 350px;
4747
margin-left: 36px;
4848
}
4949
}
50-
51-
.v-card-title, .v-card-subtitle {
52-
white-space: pre-wrap;
53-
}
5450
}
5551
5652
@media only screen and (max-width: 1000px) {
@@ -62,6 +58,16 @@ export default {
6258
padding: 0;
6359
padding-bottom: $spacer-md;
6460
}
61+
62+
&__content {
63+
&-card {
64+
max-width: unset;
65+
}
66+
67+
&-image-src {
68+
margin-left: unset;
69+
}
70+
}
6571
}
6672
}
6773
</style>

src/views/servicesRoute.vue

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default {
128128
flex-wrap: wrap;
129129
130130
&-card {
131-
width: 60%;
131+
max-width: 80%;
132132
133133
&-title {
134134
padding: 8px 0 24px;
@@ -153,6 +153,18 @@ export default {
153153
}
154154
}
155155
156+
&-card-button {
157+
flex: 40%;
158+
margin: 4px 0;
159+
text-transform: none;
160+
color: $color-secondary;
161+
}
162+
163+
&-card {
164+
max-width: 60%;
165+
padding: 12px 24px;
166+
}
167+
156168
&-image-src {
157169
width: 350px;
158170
margin-left: 36px;
@@ -162,8 +174,18 @@ export default {
162174
163175
@media only screen and (max-width: 600px) {
164176
.services-route {
165-
&__content-card-button {
166-
flex: 100%;
177+
&__content {
178+
&-card-button {
179+
flex: 100%;
180+
}
181+
182+
&-card {
183+
max-width: unset;
184+
}
185+
186+
&-image-src {
187+
margin-left: unset;
188+
}
167189
}
168190
}
169191
}

0 commit comments

Comments
 (0)