Skip to content

Commit bbb05bf

Browse files
committed
CSS Regions now only covers regions, flows, region breaks and region styling. Exclusions have been moved to the css-exclusions module and slots are not covered in this effort
1 parent eee506f commit bbb05bf

9 files changed

Lines changed: 2854 additions & 3841 deletions

css3-regions/Overview.html

Lines changed: 1268 additions & 2092 deletions
Large diffs are not rendered by default.

css3-regions/Overview.src.html

Lines changed: 1435 additions & 1749 deletions
Large diffs are not rendered by default.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
div.example:before {
2+
top: -0.6em;
3+
left: -2.5em;
4+
width: 7.5em;
5+
text-align: center;
6+
}
7+
8+
div.example:before {
9+
color: white;
10+
background: #1976B9;
11+
padding: 0.5em;
12+
border: none;
13+
border-radius: 0.4em;
14+
box-shadow: black 2px 2px 2px;
15+
margin-top: -0.5em;
16+
left: -1em;
17+
}
18+
19+
div.example {
20+
background: #f4f4f4;
21+
padding: 0.5em;
22+
margin: 1em 0;
23+
border: thin solid #999;
24+
position: relative;
25+
clear: both;
26+
}
27+
28+
div.example {
29+
color: #303030
30+
}
31+
32+
div.issue {
33+
color: red;
34+
margin-top: 1em;
35+
padding: 0.5em;
36+
border-left: 5px solid red;
37+
padding-left: 1em;
38+
position: relative;
39+
color: gray;
40+
width: 50%;
41+
}
42+
43+
div.issue:before {
44+
content: "Issue " counter(issue);
45+
background: none;
46+
padding: 0;
47+
margin: 0 0 0.7em 0;
48+
border: none;
49+
font-weight: bold;
50+
color: gray;
51+
display: block;
52+
}
53+
54+
.issue {
55+
counter-increment: issue;
56+
}
57+
58+
.toggle {
59+
font-size: smaller;
60+
color: gray;
61+
float: right;
62+
}
70 KB
Loading
21.2 KB
Loading
68.6 KB
Loading
Lines changed: 58 additions & 0 deletions
Loading

css3-regions/images/shapes.png

-40.5 KB
Loading

css3-regions/style-toggle.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
(function() {
2+
3+
var defaultStyleText = 'default spec. style';
4+
var additionalStyleText = "additional spec. style";
5+
var toggle;
6+
7+
8+
function toggleStyle() {
9+
var st = document.getElementById('st');
10+
11+
if (st.disabled === true) {
12+
st.disabled = false;
13+
toggle.textContent = defaultStyleText;
14+
} else {
15+
st.disabled = true;
16+
toggle.textContent = additionalStyleText;
17+
}
18+
}
19+
20+
window.onload = function() {
21+
var divHead = document.getElementById('div-head');
22+
toggle = document.createElement('a');
23+
24+
divHead.insertBefore(toggle, divHead.firstChild);
25+
toggle.textContent = defaultStyleText;
26+
toggle.setAttribute('class', 'toggle');
27+
toggle.setAttribute('href', '#');
28+
toggle.addEventListener("DOMActivate", toggleStyle, false);
29+
};
30+
})();
31+

0 commit comments

Comments
 (0)