Dotclear

source: admin/style/scss/partials/_content.scss @ 3767:24b9ef042f0a

Revision 3767:24b9ef042f0a, 3.1 KB checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Various CSS fixes

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

Sites map