File: media.less

package info (click to toggle)
python-lesscpy 0.15.0%2Bds-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,484 kB
  • sloc: python: 3,591; sh: 5; makefile: 4
file content (72 lines) | stat: -rw-r--r-- 1,255 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
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
/*
	CSS media groups
*/
@media screen, projection {
  html {
    background: #fffef0;
    color: #300;
  }
  body {
    max-width: 35em;
    margin: 0 auto;
  }
}
/*
	Variables
*/
@media print {
	@var: 42;
    .class {
        color: blue;    
        .sub {
            width: @var;
        }
    }
    .top, header > h1 {
        color: #222 * 2;
    }
}
@media screen {
    @base: 8;
    body { max-width: @base * 60; }
}
/*
	pseudo
*/
@media all and (orientation:portrait) {
    aside { float: none; }
}
@media not screen and (color), print and (color) {
    body { margin: 0 auto; }
}

/*

*/
@media (min-width: 768px) and (max-width: 979px) {
	.hidden-desktop    { display: none !important; }
}

@minwidth: 12px;
@media (min-width: @minwidth) {
    body { margin: 0 auto; }
}
/*
    Expressions
    */
@foo: 768px - 1;
@media (width: @foo) {
  .visible-xs { display: block; }
}

/*
    Vendor extensions and expressions
*/
@media 
  only screen and (   min--moz-device-pixel-ratio: 5/2),
  only screen and (     -o-min-device-pixel-ratio: 2/1),
  only screen and (        min-device-pixel-ratio: 2),
  only screen and (                min-resolution: 192dpi),
  only screen and (                min-resolution: 2dppx) {
    background-size: 10px;
}