aboutsummaryrefslogtreecommitdiffstats
path: root/apps/Notes/styles/_listItem.scss
blob: fcee9aaf1a4df73912e40a33b8ae8d5d17e7907c (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
.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;

        @media(max-width: 40em) {
          display: none;
        }
      }
    }

    &:nth-of-type(n+2) span {
      padding-right: .5em;
    }
  }

  @media(hover: hover) {
    &: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);
    }
  }
}