aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/pages/blog.module.scss
blob: e8d0034e8981faa8ca8d783b2346bfbff793f186 (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
@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";

.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;
          }
        }
      }
    }
  }
}