File: media-nested-2.less

package info (click to toggle)
python-lesscpy 0.15.1-0.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,488 kB
  • sloc: python: 3,591; sh: 5; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
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
/* Media queries nested deep in the tree */
div {
  span {
    p {
      @media screen {
        color: auto;
      }
    }
  }
}
/* Streak of media queries to be merged */
@media screen {
  @media (max-width: 100px) {
    @media (min-width: 50px) {
      @media print {
        p {
          color: auto;
        }
      }
    }
  }
}
/* Interaction of media queries with properties, smaller blocks, and other
   media queries at once */
.one {
  @media (width: 400px){
    font-size: 1.2em;
    .sub {
      background: red;
    }
    @media print and (color) {
      color: blue;
    }
  }
}