summaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/LibraryMenu.scss
blob: ac2c354b05a5d0a036f8326348d7ae081ac32ac5 (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
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
@import "open-color/open-color";

.excalidraw {
  .layer-ui__library {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;
  }

  .library-actions-counter {
    background-color: var(--color-primary);
    color: var(--color-primary-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    font-size: 0.625rem;
    pointer-events: none;
  }

  .layer-ui__library-message {
    padding: 2rem;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;

    span {
      font-size: 0.8em;
    }
  }

  .publish-library-success {
    .Dialog__content {
      display: flex;
      flex-direction: column;
    }

    &-close.ToolIcon_type_button {
      background-color: $oc-blue-6;
      align-self: flex-end;
      &:hover {
        background-color: $oc-blue-8;
      }
      .ToolIcon__icon {
        width: auto;
        font-size: 1rem;
        color: $oc-white;
        padding: 0 0.5rem;
      }
    }
  }

  .library-menu-control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    position: relative;

    &--at-bottom::before {
      content: "";
      width: calc(100% - 1.5rem);
      height: 1px;
      position: absolute;
      top: -1px;
      background: var(--sidebar-border-color);
    }
  }

  .library-menu-browse-button {
    flex: 1;

    height: var(--lg-button-size);

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;

    border-radius: var(--border-radius-lg);
    background-color: var(--color-primary);
    color: $oc-white;
    text-align: center;
    white-space: nowrap;
    text-decoration: none !important;

    font-weight: 600;
    font-size: 0.75rem;

    &:hover {
      background-color: var(--color-brand-hover);
    }
    &:active {
      background-color: var(--color-brand-active);
    }
  }

  &.theme--dark {
    .library-menu-browse-button {
      color: var(--color-gray-100);
    }
  }

  &.excalidraw--mobile .library-menu-browse-button {
    height: var(--default-button-size);
  }

  .layer-ui__library .dropdown-menu {
    width: auto;
    top: initial;
    right: 0;
    left: initial;
    bottom: 100%;
    margin-bottom: 0.625rem;

    .dropdown-menu-container {
      width: 196px;
      box-shadow: var(--library-dropdown-shadow);
      border-radius: var(--border-radius-lg);
      padding: 0.25rem 0.5rem;
    }
  }

  .layer-ui__library .library-menu-dropdown-container {
    position: relative;

    &--in-heading {
      padding: 0;
      position: absolute;
      top: 1rem;
      right: 0.75rem;
      z-index: 1;

      .dropdown-menu {
        top: 100%;
      }
    }
  }
}