Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_blogs.scss « pages « style « src - github.com/GDGToulouse/devfest-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae543aa634703a1b61f1bdedbe2ac38470abfeaa (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
.section.blog {

  @media (max-width: var(--breakpoint-lg)) {
    main > section {
      margin: 2rem var(--container-margin-mobile);
    }
  }

  main h1, main .blogs {
    max-width: var(--theJdrSize);
    margin: 0 auto;
  }

  .blogs {

    a.blog-links {
      position: absolute !important;
      height: 1px;
      width: 1px;
      overflow: hidden;
      clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
      clip: rect(1px, 1px, 1px, 1px);
    }

    a.blog {
      text-decoration: none;
      padding: var(--space-4);
      border-radius: var(--space-3);
      display: flex;
      color: inherit;
      border-bottom: thin solid var(--darken-1);

      @include mq($until: md) {
        padding: var(--space-2);
      }

      .img {
        display: inline-block;
        background-position: center center;
        background-size: cover;
        --size: 16rem;
        flex: 0 0 var(--size, 16rem);
        height: var(--size, 16rem);
        width: var(--size, 16rem);
        border-radius: var(--space-2);
      }

      .info {
        flex: 1 1 auto;
        margin-left: var(--space-4);
        justify-content: center;

        h2 {
          margin: var(--space-3) 0;
        }

        .reading {
          align-self: flex-end;

          &::after {
            content: ' min.';
          }
        }

        .date {
          align-self: flex-start;
          color: var(--base-secondary-text);
        }

        p {
          line-height: 1.75;
        }
      }
    }

    @include mq($until: lg) {
      a {
        grid-template-rows: auto 1fr;
        grid-template-columns: auto;

        .img {
          width: 100%;
        }
      }
    }
  }
}

@include mq($until: sm) {
  .section.blog .blogs a.blog {
    display: block;

    .img {
      display: none;
    }
  }
}

@include mq($until: lg) {
  .section.blog .blogs a.blog {
    display: block;

    .img {
      --size: 8rem;
      float: left;
      margin-right: .5em;
    }
  }
}