summaryrefslogtreecommitdiff
path: root/sass/components/_text-container.scss
diff options
context:
space:
mode:
authorArne Rief <arne.rief@gmail.com>2023-02-20 10:04:10 +0100
committerArne Rief <arne.rief@gmail.com>2023-02-20 10:04:10 +0100
commit11f8629251a63f3a3260b9ed28277ed312abd136 (patch)
tree3a4d22b0ebad36ad9d492bae72ab308321bd22b8 /sass/components/_text-container.scss
parent7439372f7100017e4c5f70bed42a601706106435 (diff)
Small media query adjustments
Diffstat (limited to 'sass/components/_text-container.scss')
-rw-r--r--sass/components/_text-container.scss17
1 files changed, 8 insertions, 9 deletions
diff --git a/sass/components/_text-container.scss b/sass/components/_text-container.scss
index 95d2944..6cd1457 100644
--- a/sass/components/_text-container.scss
+++ b/sass/components/_text-container.scss
@@ -8,6 +8,12 @@
transform: skewX(-12deg);
width: 50%;
+ // mobile to smaller laptop screen sizes
+ @include responsive(laptop) {
+ transform: skewX(0);
+ width: auto;
+ }
+
// margin between paragraphs but not below the last paragraph
& p:not(:last-child) {
margin-bottom: 1.5rem;
@@ -17,16 +23,9 @@
.text-about {
animation: moveInRight 2s ease-out;
backface-visibility: hidden;
-}
-
-// mobile to smaller laptop screen sizes
-@media screen and (max-width: 1380px) {
- .text-container {
- transform: skewX(0);
- width: auto;
- }
- .text-about {
+ // mobile to smaller laptop screen sizes
+ @include responsive(laptop) {
animation: moveInRightMobile 2s ease-out;
margin-top: 5rem;
}