aboutsummaryrefslogtreecommitdiffstats
path: root/apps/Notes/styles/_listItem.scss
blob: 5e7376f7e6d7496943fe9a8802a2c417a0cab1bc (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
.listItem {
  td {
    min-width: 10em;
    white-space: nowrap;

    &:first-of-type {
      width: 99%;
      display: flex;
      margin-right: 1em;

      & > span:nth-child(1) {
        text-overflow: ellipsis;
        overflow: hidden;
        flex-grow: 1;
      }

      & > span:nth-child(n+2){
        margin-left: .25em;
        padding: .15em .5em;
        line-height: 1em;
        border-radius: 50%;
        visibility: hidden;
        opacity: 0;
        font-size: 80%;
        transition: .3s opacity linear .3s;
      }
    }
  }

  &:hover {
    background: var(--color-window-menu-alt);
    border-radius: .5em;
    // cursor: pointer;

    & > td:first-of-type > span:nth-child(n+2){
      color: var(--color-window-buttons);
      visibility: visible;
      opacity: 1;
    }
  }

  & > td:first-of-type > span:nth-child(n+2):hover {
    color: var(--color-text-alt);
    background-color: var(--color-glass);
  }
}