Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
1
+.ce_accordion {
2
+  margin-bottom: 1rem;
3
+
4
+  .toggler {
5
+    background-color: var(--bs-gray-200);
6
+    padding: 1.5rem 2.5rem;
7
+    text-align: center;
8
+    cursor: pointer;
9
+    @include font-size(28px);
10
+    position: relative;
11
+
12
+    > span.ui-icon {
13
+      position: absolute;
14
+      right: 1rem;
15
+      top: 50%;
16
+      margin-top: -15px;
17
+      line-height: 1;
18
+      display: inline-block;
19
+      transition: all .3s ease;
20
+
21
+      &:after {
22
+
23
+        @extend %fa-icon;
24
+        @extend .fas;
25
+        content: fa-content($fa-var-chevron-up);
26
+        @include font-size(20px);
27
+      }
28
+    }
29
+
30
+    &.ui-state-active {
31
+      > span.ui-icon {
32
+        transform: rotate(180deg);
33
+      }
34
+    }
35
+
36
+
37
+  }
38
+
39
+  .accordion {
40
+    background-color: var(--bs-gray-200);
41
+
42
+    > div {
43
+      padding: 0rem 1.5rem 1.5rem 1.5rem;
44
+    }
45
+  }
46
+
47
+  &:nth-child(even) {
48
+    .toggler {
49
+      background-color: $gray-100;
50
+    }
51
+
52
+    .accordion {
53
+      background-color: $gray-100;
54
+    }
55
+  }
56
+
57
+  .accordion {
58
+    .content--box {
59
+    }
60
+  }
61
+}