Dotclear

source: themes/berlin/scss/init/_rebase.scss @ 2640:489437dde4f5

Revision 2640:489437dde4f5, 3.4 KB checked in by Anne Kozlika <kozlika@…>, 10 years ago (diff)

New default theme BERLIN, first commit.
Needs A LOT of clean-up and to be enhanced.

Line 
1/** =================================================================================
2      Base rules and html5 compatibility by Dotclear Team,
3//*  most based on some Koz's habits and:
4//*  - Comprehensive Base Stylesheet by fvsch - http://fvsch.com/code/base-stylesheet/
5//*  - Normalize.css v2.1.3 | MIT License | git.io/normalize
6//*  - Knacss | WTFYW | by Raphael Goetter
7================================================================================== */
8
9/* largeur des paddings et border compris dans "width" */
10*,
11*:after,
12*:before {
13     -webkit-box-sizing: border-box; // Safari/Chrome, other WebKit */
14     -moz-box-sizing: border-box;    // Firefox, other Gecko */
15     -ms-box-sizing: border-box;     // Explorer
16     box-sizing: border-box;
17}
18html {
19     font-size: 100.01%; // bug arrondi sur vieux navigateurs
20     -ms-text-size-adjust: 100%;
21     -webkit-text-size-adjust: 100%;
22     margin: 0;
23     padding: 0;
24}
25body {
26     margin: 0;
27     padding: 0;
28}
29a { background: transparent; }
30a:focus { outline: thin dotted; }
31a:active, a:hover { outline: none; }
32a img { border: none; }
33q, cite {
34  font-style: italic;
35}
36q:before, q:after {
37  content: "";
38}
39sup, sub {
40     font-size: .75em;
41     line-height: 0;
42     position: relative;
43     vertical-align: baseline;
44}
45sup { top: -0.5em; }
46sub { bottom: -0.25em; }
47abbr[title] {
48  border-bottom: 1px dotted;
49  cursor: help;
50}
51b, strong {
52  font-weight: bold;
53  font-size: 0.9375em;
54}
55small {
56     font-size: 80%;
57}
58dfn {
59     font-style: italic;
60}
61hr {
62     -moz-box-sizing: content-box;
63     box-sizing: content-box;
64     height: 0;
65}
66mark {
67     background: #ff0;
68     color: #000;
69}
70code, kbd, pre, samp {
71     font-family: monospace, serif;
72     font-size: 1em;
73}
74pre {
75     white-space: pre-wrap;
76}
77fieldset {
78  margin: 0;
79  padding: 0;
80  border: none;
81}
82input, button, select {
83  vertical-align: middle;
84}
85button, input, select, textarea {
86     font-family: inherit;
87     font-size: 100%;
88     margin: 0;
89}
90button, input {
91     line-height: normal;
92}
93button,
94html input[type="button"],
95input[type="reset"],
96input[type="submit"] {
97     -webkit-appearance: button;
98     cursor: pointer;
99}
100button[disabled],
101html input[disabled] {
102     cursor: default;
103}
104input[type="checkbox"],
105input[type="radio"] {
106     padding: 0;
107     border: none;
108}
109input[type="search"] {
110  -webkit-appearance: textfield;
111}
112input[type="search"]::-webkit-search-cancel-button,
113input[type="search"]::-webkit-search-decoration {
114     -webkit-appearance: none;
115}
116button::-moz-focus-inner,
117input::-moz-focus-inner {
118     border: 0;
119     padding: 0;
120}
121textarea {
122  overflow: auto;
123  vertical-align: top;
124}
125table {
126  border-collapse: collapse;
127  margin-bottom: 1.5em;
128}
129td, th {
130  padding: 1px;
131  vertical-align: top;
132  text-align: left;
133}
134td:first-child, th:first-child {
135  empty-cells: hide;
136}
137/* scripts */
138body > script {display: none !important;}
139
140/* HTML5 for old browsers */
141article, aside, details, figcaption, figure, footer,
142header, hgroup, main, nav, section, summary {
143  display: block;
144}
145audio, canvas, video {
146  display: inline-block;
147}
148audio:not([controls]) {
149  display: none;
150  height: 0;
151}
152figure {
153  margin: 0;
154}
155[hidden], template {
156  display: none;
157}
158svg:not(:root) {
159  overflow: hidden;
160}
161/* Headings reset */
162h1, h2, h3, h4, h5, h6 {
163     font-size: 1em;
164     font-weight: normal;
165     margin: 0;
166}
167/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
168.visually-hidden {
169    border: 0;
170    clip: rect(0 0 0 0);
171    height: 1px;
172    margin: -1px;
173    overflow: hidden;
174    padding: 0;
175    position: absolute;
176    width: 1px;
177}
Note: See TracBrowser for help on using the repository browser.

Sites map