##// END OF EJS Templates
outputarea.js: Wrap inline SVGs inside an iframe...
outputarea.js: Wrap inline SVGs inside an iframe When multiple inline SVGs are included in a single document, they share the same parse tree. Therefore, style collisions and use id collisions can occur and upset the rendering. This patch wraps each SVG inside an individual iframe, ensuring that SVG's declarations do not collide. (The SVG representation is kept as XML and not converted to a binary format, so I do not think this approach precludes the use of d3.js) Tested on: * Chrome Version 29.0.1547.57 Debian 7.1 (217859) * Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Firefox/17.0 Iceweasel/17.0.8 Closes #1866

File last commit:

r11033:fa36e98f
r13408:333abbe5
Show More
flexbox.less
105 lines | 1.5 KiB | text/x-less | LessCssLexer
Bussonnier Matthias
readd flexible-box-model
r9271
/* Flexible box model classes */
/* Taken from Alex Russell http://infrequently.org/2009/08/css-3-progress/ */
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .hbox {
display: -webkit-box;
-webkit-box-orient: horizontal;
-webkit-box-align: stretch;
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 display: -moz-box;
-moz-box-orient: horizontal;
-moz-box-align: stretch;
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 display: box;
box-orient: horizontal;
box-align: stretch;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .hbox > * {
-webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .vbox {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-box-align: stretch;
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 display: -moz-box;
-moz-box-orient: vertical;
-moz-box-align: stretch;
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 display: box;
box-orient: vertical;
box-align: stretch;
MinRK
add width:100% to vbox for webkit / FF consistency...
r9981 /* width must be 100% to force FF to behave like webkit */
width: 100%;
Bussonnier Matthias
readd flexible-box-model
r9271 }
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .vbox > * {
-webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .reverse {
-webkit-box-direction: reverse;
-moz-box-direction: reverse;
box-direction: reverse;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .box-flex0 {
-webkit-box-flex: 0;
-moz-box-flex: 0;
box-flex: 0;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Matthias BUSSONNIER
merge box-flex1 class into .output-area css definition
r10218 .box-flex1 {
Bussonnier Matthias
readd flexible-box-model
r9271 -webkit-box-flex: 1;
-moz-box-flex: 1;
box-flex: 1;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Matthias BUSSONNIER
merge box-flex1 class into .output-area css definition
r10218 .box-flex {
.box-flex1();
}
Bussonnier Matthias
readd flexible-box-model
r9271 .box-flex2 {
-webkit-box-flex: 2;
-moz-box-flex: 2;
box-flex: 2;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .box-group1 {
-webkit-box-flex-group: 1;
-moz-box-flex-group: 1;
box-flex-group: 1;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .box-group2 {
-webkit-box-flex-group: 2;
-moz-box-flex-group: 2;
box-flex-group: 2;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .start {
-webkit-box-pack: start;
-moz-box-pack: start;
box-pack: start;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .end {
-webkit-box-pack: end;
-moz-box-pack: end;
box-pack: end;
}
Matthias BUSSONNIER
remove trailing whitespace
r9284
Bussonnier Matthias
readd flexible-box-model
r9271 .center {
-webkit-box-pack: center;
-moz-box-pack: center;
box-pack: center;
}