summaryrefslogtreecommitdiff
path: root/src/web/styles/home.scss
blob: c2d6242b43c72540f2ba23d1d238a22535dccaeb (plain)
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
129
130
131
132
133
@import "theme/global";
@import "theme/home";
@import "partials/home";

body { @include home-body; }

.header {
  text-align: center;
  #welcome-title { 
    color: $welcomeHeadingFG;
  }
  #welcome-subtitle { 
    font-size: 1.1em;
    color: $welcomeHeadingAltFG; 
  }
}

.links-container {
  width: 100%;
  display: flex;
  justify-content: center;
    // border: 1px solid pink;

  .links {
    max-width: 42em;
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;

    a {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1em;
      background-color: $buttonBackgroundColor;
      height: 3rem;
      min-width: 10em;
      border: 1px solid $buttonBorderColor;
      border-radius: 2em;
    }
  }
}

.recents {
  display: flex;
  flex-direction: column;

  .recents-label {
    color: $recentsLabelFG;
    margin-bottom: 0.5rem;
  }

  .posts, .tags {
    background-color: $recentsItemBG;
    border: 1px solid $buttonBorderColor;
    width: 100%;
    padding: 3px 7px;
    overflow-y: scroll;
  }

  .posts {
    font-size: 1.3rem;
    max-height: 13em;
    .post {
      margin: 0.3em auto;
      a {
        word-break: break-word;
        color: $postTitleFG;
        // font-weight: bold;
        font-size: 0.95em;
      }
      a:hover {
        color: $defLinkForeground;
      }
      .post-createdat {
        color: $postCreatedAtFG;
        font-size: 0.9em;
      }
    }
  }

  .tags {
    height: 28em;
  }
}

@media screen and (max-width: 1200px) {
  body { @include home-body-1200px; }
}

@media screen and (max-width: 800px) {
  body { @include home-body-800px; }
  .links-container .links {
    a {
      font-size: 1em;
      min-width: 9em;
      margin: 0.3em auto;
    }
  }
}

@media screen and (max-width: 600px) {
  body { @include home-body-600px; }
  .links-container .links {
    a {
      font-size: 0.9em;
      min-width: 8.5em;
    }
  }
  .recents {
    .recents-label {
      padding: 0 0.8rem
    }
    .posts, .tags {
      padding: 0.2rem 0.8rem;
      width: 100%;
      border: none;
    }
    .posts {
      // background-color: $defBackgroundColor;
      .post {
        a {
          font-size: 0.8em;
        }
        .post-createdat {
          font-size: 0.7em;
        }
      }
    }
  }
}