aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/pages/blog.module.scss
blob: 553e9f9fa525da14f24f2f639f1ecb3192f576bc (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
@use "../abstracts/functions" as fun;
@use "../abstracts/mixins" as mix;
@use "../abstracts/placeholders";
@use "partials/article-headings";
@use "partials/article-links";
@use "partials/article-lists";
@use "partials/article-media";
@use "partials/article-wp-blocks";

.posts-list {
  @include mix.media("screen") {
    @include mix.dimensions("md") {
      --col1: #{fun.convert-px(100)};
      --gap: var(--spacing-lg);

      margin-top: var(--spacing-md);
      margin-left: calc((var(--col1) + var(--gap)) * -1);
    }
  }
}

.pagination {
  margin-top: var(--spacing-md);
}

.sharing-widget {
  @include mix.media("screen") {
    @include mix.dimensions("md") {
      ul {
        width: min-content;
      }
    }
  }
}

.topic-logo {
  max-width: fun.convert-px(50);
  margin: 0 var(--spacing-xs) 0 0;
}

.body {
  :global {
    @include article-headings.styles;
    @include article-links.styles;
    @include article-lists.styles;
    @include article-media.styles;
    @include article-wp-blocks.styles;
    @extend %prism;
  }
}

:global([data-theme="light"]) {
  :local {
    .body {
      :global {
        a {
          &.download {
            @extend %light-download-link;
          }

          &.external {
            @extend %light-external-link;
          }
        }
      }
    }
  }
}

:global([data-theme="dark"]) {
  :local {
    .body {
      :global {
        a {
          &.download {
            @extend %dark-download-link;
          }

          &.external {
            @extend %dark-external-link;
          }
        }
      }
    }
  }
}