aboutsummaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/Card.scss
blob: ba0fbc437d930d278cbe04e852876269a170e988 (plain) (blame)
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
@import "../css/variables.module.scss";

.excalidraw {
  .Card {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 290px;

    margin: 1em;

    text-align: center;

    .Card-icon {
      font-size: 2.6em;
      display: flex;
      flex: 0 0 auto;
      padding: 1.4rem;
      border-radius: 50%;
      background: var(--card-color);
      color: $oc-white;

      svg {
        width: 2.8rem;
        height: 2.8rem;
      }
    }

    .Card-details {
      font-size: 0.96em;
      min-height: 90px;
      padding: 0 1em;
      margin-bottom: auto;
    }

    & .Card-button.ToolIcon_type_button {
      height: 2.5rem;
      margin-top: 1em;
      margin-bottom: 0.3em;
      background-color: var(--card-color);
      &:hover {
        background-color: var(--card-color-darker);
      }
      &:active {
        background-color: var(--card-color-darkest);
      }
      .ToolIcon__label {
        color: $oc-white;
      }

      .Spinner {
        --spinner-color: #fff;
      }
    }
  }
}