~kmdodrill/my-brother-lives-in-a-canyon-website

ref: ab282f293c4ce82c4060a541495e51816b081d25 my-brother-lives-in-a-canyon-website/sass/site.scss -rw-r--r-- 2.3 KiB
ab282f29Kenneth Dodrill optimize thumb img 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@charset "utf-8";

@font-face {
    font-family: manrope-regular;
    src: url("/font/Manrope-Regular.otf")
}

$bg-color: #49343d;
$list-bg-color: #5b455f;
$text-color: #dce2e1;
$link-color: #b86343;
$link-hover-color: #bc8563;
$font-family: manrope-regular;

body {
    margin: 0 auto;
    color: $text-color;
    font-family: $font-family;
}

html, body {
    background-color: $bg-color;
}

a {
    text-decoration: none;
    color: $link-color;
}

a:hover {
    color: $link-hover-color
}

img {
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

article {
    margin: 0 auto;
    line-height: 1.3;
    text-align: left;
    padding-top: 1rem 1rem 3rem 1rem;

    h2, h3, p {
        display: grid;
        justify-content: center;
    }

    ul {
        display: grid;
        justify-content: center;
        padding-top: 1rem;
        padding-left: 0;
        padding-bottom: 2.5rem;
        background-color: $list-bg-color;
    }

    img {
        border-radius: 10px;
    }

    .links {
        ul {
            background-color: $bg-color;
            padding-bottom: 1rem;
        }
        li {
            display: flex;
        }
    }

    .screenshots {
        ul {
            display: flex;
            flex-wrap: wrap;
            padding-left: 0;
            padding-bottom: 1rem;
            background-color: #513e45;
        }

        li {
            display: flex;
            height: 40vh;
            flex-grow: 1;
        }

        img {
            max-height: 100%;
            max-width: 100%;
            object-fit: cover;
            vertical-align: bottom;
            border-radius: 5px;
        }

        @media (max-aspect-ratio: 1/1) {
            li {
                height: 30vh;
            }
        }

        @media (max-height: 480px) {
            li {
              height: 80vh;
            }
        }

        @media (max-aspect-ratio: 1/1) and (max-width: 480px) {
            ul {
              flex-direction: row;
            }
          
            li {
              height: auto;
              width: 100%;
            }
          
            img {
              width: 100%;
              max-height: 75vh;
              min-width: 0;
            }
        }
    }
}