Skip to content

Commit 608ca25

Browse files
committed
Fix skills section flexbox, Fix grid for mobile
1 parent ce3bec3 commit 608ca25

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

_sass/_tailwindcss.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
display: flex;
7676
}
7777

78+
.flex-wrap {
79+
flex-wrap: wrap;
80+
}
81+
7882
.flex-col {
7983
flex-direction: column;
8084
}

_sass/components/_grid.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
display: grid;
33

44
&-two-columns {
5-
grid-template-columns: repeat(2, 1fr);
5+
@media screen and (min-width: 600px) {
6+
grid-template-columns: repeat(2, 1fr);
7+
}
68
}
79

810
&-item {

_sass/components/_home.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
color: lighten($accent-color, 20%);
2626
font-size: 8.8rem;
2727
display: inline-block;
28-
padding: 20px;
28+
padding: 4px;
29+
30+
@media screen and (min-width: 600px) {
31+
padding: 16px;
32+
}
2933

3034
&:hover {
3135
color: lighten($accent-color, 30%);
@@ -49,7 +53,8 @@
4953
p {
5054
margin: 10px 0;
5155
}
52-
p, a {
56+
p,
57+
a {
5358
color: $primary-inverse-color;
5459
font-size: 1.8rem;
5560
}

_sass/components/_tooltip.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
$root: &;
33
position: relative;
44
display: inline-block;
5+
margin-bottom: 16px;
56

67
&-text {
78
background-color: lighten($accent-color, 20%);

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>What I Do</h2>
4848
<div class="Container">
4949
<h2>My Skillset</h2>
5050

51-
<div class="Container-row">
51+
<div class="flex flex-wrap justify-between">
5252
<div class="TooltipContainer">
5353
<i class="devicon-ruby-plain" alt="Ruby language icon"></i>
5454
<div class="TooltipContainer-text TooltipContainer-text--bottom">

0 commit comments

Comments
 (0)