Dotclear

source: admin/style/scss/partials/_content.scss @ 3765:00d069f97ebc

Revision 3765:00d069f97ebc, 3.1 KB checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Review CSS for search form (main menu, modules and themes)

Line 
1.part-tabs {
2     ul {
3          padding: .5em 0 0 1em;
4          border-bottom: 1px solid $tabs-border;
5          line-height: 1.8;
6     }
7     li {
8          list-style: none;
9          margin: 0;
10          display: inline;
11          &:first-child a {
12               border-top-left-radius: 3px;
13          }
14          &:last-child a {
15               border-top-right-radius: 3px;
16          }
17          a {
18               padding: .33em 1.5em;
19               margin-right: -1px;
20               border: 1px solid $tabs-border;
21               border-bottom: none;
22               text-decoration: none;
23               color: $tabs-color;
24      background-color: $tabs-background;
25               display: inline-block;
26               &:hover,
27               &:focus {
28        color: $tabs-color;
29                    background: $tabs-active-background;
30                    border-bottom-color: $tabs-active-background;
31               }
32      &:link {
33        transition: unset;
34      }
35          }
36          &.part-tabs-active a {
37               background: $tabs-active-background;
38               font-weight: bold;
39               border-bottom-color: $tabs-active-background;
40          }
41     }
42}
43
44.multi-part {
45     padding-left: 1em;
46}
47
48.pseudo-tabs {
49     margin: -.75em 0 2em 0;
50     border-bottom: 1px solid $tabs-border;
51     display: table;
52     width: 100%;
53     padding: 0;
54     line-height: 24px;
55     border-collapse: collapse;
56     li {
57          display: table-cell;
58          border-width: 0 1px;
59          border-style: solid;
60          border-color: $tabs-border;
61          padding: 0;
62          margin: 0;
63          text-align: center;
64     }
65     a {
66          display: block;
67          font-weight: bold;
68          padding: 0 24px;
69          border-bottom: none;
70          &:hover,
71          &:focus {
72               background-color: $tabs-background;
73               color: $tabs-color;
74          }
75          &.active {
76               background-color: $tabs-active-background;
77               color: $tabs-active-color;
78          }
79     }
80}
81
82
83/* contextual help */
84
85#help {
86     margin-top: 4em;
87     background: $help-background;
88     z-index: 100;
89     clear: both;
90     padding: 0 1em;
91     #content.with-help & {
92          display: block;
93          position: absolute;
94          top: 0;
95          right: 0;
96          width: 32rem; // 24em;
97          border-left: 2px solid $help-border;
98          border-top: 2px solid $help-border;
99          margin-top: 0;
100          padding: .5em 0 0 0;
101          overflow: auto;
102     }
103}
104
105#help-button {
106     background: transparent url(help-mini.png) no-repeat 6px center;
107     position: absolute;
108     top: 0;
109     right: 0;
110     padding: 0 1.5em 0 30px;
111     cursor: pointer;
112     color: $link;
113     line-height: 3;
114     &.floatable {
115          border-top: 2px solid $help-button-border;
116          border-left: 2px solid $help-button-border;
117          border-bottom: 2px solid $help-button-border;
118          border-bottom-left-radius: 1em;
119          border-top-left-radius: 1em;
120          background-color: $help-button-background;
121          position: fixed;
122          top: 10px;
123          -webkit-transform: translateZ(0); // Let GPU doing his job
124     }
125     .no-js & {
126          top: 1em;
127     }
128     span {
129          padding: .5em 0 .1em 0;
130     }
131     #content.with-help & {
132          right: 32rem; // 24em;
133          background-color: $help-background;
134          position: fixed;
135          top: 6em; // 50px;
136          z-index: 100;
137          border-top: 2px solid $help-border;
138          border-left: 2px solid $help-border;
139          border-bottom: 2px solid $help-border;
140          border-bottom-left-radius: 1em;
141          border-top-left-radius: 1em;
142     }
143}
144
145.help-box {
146     display: none;
147     ul {
148          padding-left: 20px;
149          margin-left: 0;
150     }
151}
152
153.help-content {
154     #content.with-help & {
155          padding: 0 1em 1em;
156     }
157     dt {
158          font-weight: bold;
159          color: $help-title-color;
160          margin: 0;
161     }
162     dd {
163          margin: 0.3em 0 1.5em 0;
164     }
165}
166
167
168/* lien d'aide générale dans le help content */
169
170#helplink p {
171     padding: 0 0 0 .5em;
172}
Note: See TracBrowser for help on using the repository browser.

Sites map