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

_summary.scss « components « sass « assets - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50f64e25a9984dca8f725744869a3847d661a6f3 (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
.summary-card {
  padding: 0.5rem;
  padding-bottom: 0;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  position: relative;

  @include themify($themes) {
    background-color: themed('body-background-color');
    border-bottom: 1px solid themed('hr-color');
  }

  .title {
    a {
      font-family: $title-font;
      font-weight: 700;
      word-break: break-word;

      @include themify($themes) {
        color: themed('title-color');
        @include on-event {
          color: themed('link-hover');
        }
      }
    }
  }

  .subtitle {
    @include flexbox();
    @include align-items(center);
    @include themify($themes) {
      color: themed('meta-color');
    }
  }

  &__links {
    font-size: 0.8rem;
    
    @include flexbox();
    @include flex-wrap(wrap);
    @include themify($themes) {
      background-color: themed('body-background-color');
    }
  }

  &__tag {
    margin-right: 0.5rem;
    margin-bottom: 0.35rem;
    padding: 0.125rem 0.25rem;
    border-top-left-radius: 0.15rem;
    border-top-right-radius: 0.15rem;
    cursor: pointer;
    
    @include themify($themes) {
      border: 1px solid themed('hr-color');
      border-bottom: none;
    }
  }

  &__content {
    margin-bottom: 1rem;

    @include flexbox();
    @include flex-direction(column);
    @include justify-content(center);
  }

  &__text {
    margin-top: 1rem;
    line-height: 1.7rem;
  }

  &__image {
    width: 100%;
    height: 100%;
    
    &-wrapper {
      height: 100%;
      width: auto;
      margin: 0 auto;
      padding: 1rem;
      padding-bottom: 0;
    }
  }

  &__video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;

    &-wrapper {
      padding: 1rem;
      padding-bottom: 0;
    }
  }

  hr {
    margin-top: 1.5rem;
    @include themify($themes) {
        border-top: 1px solid themed('hr-color');
    }
  }
  &:not(:last-child) {
    hr {
      margin-bottom: 4rem;      
    }
  }
  &:last-child {
    hr {
      margin-bottom: 2rem;
    }
  }
}