Dotclear

source: admin/style/scss/partials/_mediaqueries.scss @ 3763:857d4768935c

Revision 3763:857d4768935c, 1.8 KB checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Use sass variables for every color used (mainly foreground, background, border)

Line 
1/* ------------------------------------------------------------------------------------
2                                                                           UN POIL DE MEDIA QUERIES
3------------------------------------------------------------------------------------ */
4
5@media screen and (max-width: $xl-screen) {
6  #header,
7  h1 {
8    background: $header-background-alt;
9  }
10  #top-info-user {
11    background: $header-background;
12    a.active {
13      color: $header-active-color-alt;
14      background: $header-active-background-alt;
15    }
16  }
17  #wrapper {
18    background: $wrapper-background url(bg_wrapper.png) repeat-y 17em;
19  }
20}
21
22@media screen and (max-width: $s-screen) {
23     #help-button {
24    background-color: $header-border;
25          padding: 0;
26          font-size: .83em;
27          line-height: 68px;
28     }
29}
30
31@media screen and (max-width: $xs-screen) {
32  h1 a {
33    &:link {
34      border-right: 1px solid $tabs-border;
35    }
36    &:hover,
37    &:focus {
38      border-right: 1px solid $tabs-border;
39    }
40  }
41     #dashboard-main {
42          padding: 0;
43     }
44     #content,
45     .hide-mm #content {
46          padding: 0 .5em !important;
47     }
48     #main #content > h2 {
49          padding: 6px 30px 4px .5em;
50     }
51     .cell,
52     #filters-form .cell {
53          border: none;
54          padding: 1em;
55     }
56     .pseudo-tabs li {
57    border-top: 1px solid $tabs-border;
58          padding: .25em;
59          &:first-child,
60          &:nth-of-type(2) {
61               border-top: none;
62          }
63     }
64}
65
66@media screen and (max-width: $xxs-screen) {
67  h1,
68  h1 a {
69    border-right: $header-border-alt !important;
70  }
71     #content.with-help #help {
72          font-size: 1.2rem // 12px;
73     }
74     p.top-add {
75          text-align: center;
76     }
77     .multi-part {
78          padding-left: 0;
79     }
80     .part-tabs ul {
81          padding: 0 .5em;
82     }
83     #icons p {
84          padding: 1em .25em;
85     }
86     .box.current-theme {
87          padding: 10px;
88     }
89     th,
90     td {
91          padding: 0.3em 1em 0.3em 0;
92     }
93  .pseudo-tabs li {
94    border-top: 1px solid $tabs-border !important;
95  }
96     .pseudo-tabs li:first-child {
97          border-top: none;
98     }
99}
Note: See TracBrowser for help on using the repository browser.

Sites map