Blame view

public/scss/blocks/_favorites.scss 2.86 KB
242debab8   thesolarwind   Первый коммит в п...
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
  .favorites {
  
      &__descr {
          max-width: 400px;
          color: $white;
          font-size: 16px;
          line-height: 22px;
          font-weight: 500;
          margin-top: 12px;
      }
  
      &__sorts {
          display: flex;
          flex-wrap:  wrap;
          margin: 0 -5px 40px;
  
          @media (min-width: 780px) {
              flex-wrap: nowrap;
              margin: 0 0 40px;
          }
  
          @media (min-width: 1200px) {
              margin: 0 0 60px;
          }
      }
  
      &__sort-group {
          width: calc(100% - 10px);
          margin: 0 5px;
          @media (min-width: 480px) {
              width: calc(50% - 10px);
          }
  
          @media (min-width: 780px) {
              width: 200px;
              margin: 0;
          }
  
          &:not(:last-child) {
              margin: 0px 5px 10px;
  
              @media (min-width: 780px) {
                  margin: 0px 10px 0px 0px;
              }
          }
  
          &.sort-group--wide {
              @media (min-width: 780px) {
                  width: 294px;
              }
             
          }
      }
  
      &__grid {
          display: grid;
          grid-gap: 20px;
          grid-template-columns: repeat(1, 1fr);
  
          @media (min-width: 540px) {
              grid-template-columns: repeat(2, 1fr);
          }
  
          @media (min-width: 920px) {
              grid-template-columns: repeat(3, 1fr);
          }
  
          @media (min-width: 1200px) {
              grid-template-columns: repeat(4, 1fr);
          }
      }
  
      &__items {
          display: grid;
          grid-gap: 20px;
          grid-template-columns: repeat(1, 1fr);
  
          @media (min-width: 640px) {
              grid-template-columns: repeat(2, 1fr);
          }
  
          @media (min-width: 1024px) {
              grid-template-columns: repeat(3, 1fr);
          }
      }
  }
  
  .favorites-top {
      background-color: #286699;
      padding-bottom: 60px;
  
      &__link {
          font-size: 32px;
          line-height: 36px;
          font-weight: 800;
          text-decoration-line: underline;
          color: rgba(255, 255, 255, 0.6);
          margin-top: 8px;
  
          @media (min-width: 1200px) {
              font-size: 48px;
              line-height: 52px;
              margin-top: 0;
          }
      }
  }
  
  .favorites-cnt {
      padding: 60px 0;
  
      @media (min-width: 1200px) {
          padding: 100px 0;
      }
  }
  
  .favorites-item {
      display: flex;
      align-items: center;
      background-color: #EDF7FF;
      border-radius: 10px;
      padding: 25px 20px;
  
      @media (min-width: 1200px) {
          padding: 25px 20px;
      }
  
      &__img {
          flex-shrink: 0;
          width: 80px;
          margin-right: 20px;
  
          img {
              max-width: 100%;
          }
      }
  
      &__descr {
          font-size: 14px;
          line-height: 20px;
          font-weight: 500;
  
          a {
              color: $blue;
              font-weight: 600;
          }
  
          img {
              display: inline-block;
              margin-bottom: -5px;
          }
      }
  }