2016-05-01 23:22:17 +00:00
|
|
|
button,
|
2016-05-15 08:21:29 +00:00
|
|
|
input {
|
|
|
|
background: white;
|
|
|
|
min-height: 1.0em;
|
|
|
|
padding: 0em;
|
|
|
|
padding-left: 0.25em;
|
|
|
|
padding-right: 0.25em;
|
|
|
|
border: solid lightgrey 1px;
|
|
|
|
color: black;
|
|
|
|
font-family: sans-serif;
|
2016-06-02 15:49:50 +00:00
|
|
|
font-size: 0.8333em;
|
2016-05-15 08:21:29 +00:00
|
|
|
text-align: left;
|
|
|
|
line-height: 1.8;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
background: white;
|
|
|
|
min-height: 1.0em;
|
|
|
|
padding: 0em;
|
|
|
|
padding-left: 0.25em;
|
|
|
|
padding-right: 0.25em;
|
|
|
|
border: solid lightgrey 1px;
|
|
|
|
color: black;
|
|
|
|
font-family: sans-serif;
|
2016-06-02 15:49:50 +00:00
|
|
|
font-size: 0.8333em;
|
2016-07-26 13:31:49 +00:00
|
|
|
white-space: pre-wrap;
|
2016-05-15 08:21:29 +00:00
|
|
|
}
|
|
|
|
|
2016-04-01 14:45:32 +00:00
|
|
|
input::selection,
|
2016-05-15 08:21:29 +00:00
|
|
|
textarea::selection {
|
|
|
|
background: rgba(176, 214, 255, 1.0);
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
2014-12-08 05:22:07 +00:00
|
|
|
button,
|
2014-10-13 18:21:44 +00:00
|
|
|
input[type="button"],
|
|
|
|
input[type="submit"],
|
2016-05-15 08:21:29 +00:00
|
|
|
input[type="reset"] {
|
|
|
|
background: lightgrey;
|
|
|
|
border-top: solid 1px #EEEEEE;
|
|
|
|
border-left: solid 1px #CCCCCC;
|
|
|
|
border-right: solid 1px #999999;
|
|
|
|
border-bottom: solid 1px #999999;
|
|
|
|
text-align: center;
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="hidden"] { display: none !important }
|
|
|
|
|
2014-10-13 18:21:44 +00:00
|
|
|
input[type="checkbox"],
|
2016-05-15 08:21:29 +00:00
|
|
|
input[type="radio"] {
|
|
|
|
font-family: monospace !important;
|
|
|
|
border: none !important;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]::before {
|
|
|
|
display: inline-block;
|
|
|
|
border: solid currentcolor 1px;
|
|
|
|
content: "";
|
|
|
|
padding: 0;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2014-10-13 18:21:44 +00:00
|
|
|
|
2015-08-22 19:20:11 +00:00
|
|
|
input[type="checkbox"]:checked::before { content: "✓"; }
|
|
|
|
input[type="checkbox"]:indeterminate::before { content: "-"; }
|
2016-05-15 08:21:29 +00:00
|
|
|
|
|
|
|
input[type="radio"]::before {
|
|
|
|
display: inline-block;
|
|
|
|
border: solid currentcolor 1px;
|
|
|
|
content: "";
|
|
|
|
padding: 0;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2015-08-22 19:20:11 +00:00
|
|
|
input[type="radio"]:checked::before { content: "●"; line-height: 1em; }
|
|
|
|
|
2016-06-28 11:10:44 +00:00
|
|
|
input[type="file"]::before {
|
|
|
|
content: "Choose File";
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="file"] {
|
|
|
|
background: lightgrey;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
2016-05-15 08:21:29 +00:00
|
|
|
select {
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 1px;
|
|
|
|
background: white;
|
|
|
|
}
|
|
|
|
|
2015-10-04 18:49:26 +00:00
|
|
|
select[multiple] { padding: 0em 0.25em; }
|
|
|
|
select:not([multiple]) { padding: 0.25em 0.5em; border-radius: 6px; }
|
2016-05-15 08:21:29 +00:00
|
|
|
|
|
|
|
select:not([multiple])::after {
|
|
|
|
content: "";
|
|
|
|
display: inline-block;
|
|
|
|
border-width: 5.2px 3px 0 3px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: currentcolor transparent transparent transparent;
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
2015-10-04 18:49:26 +00:00
|
|
|
select:not([multiple]) option { display: none !important; }
|
|
|
|
select:not([multiple]) option[selected] { display: inline !important; }
|
|
|
|
select[multiple] option { display: block !important; }
|
|
|
|
select[multiple] option[selected] { background-color: grey; color: white; }
|
|
|
|
select[multiple]:focus option[selected] { background-color: darkblue; }
|
2014-10-14 20:06:36 +00:00
|
|
|
|
|
|
|
td[align="left"] { text-align: left; }
|
|
|
|
td[align="center"] { text-align: center; }
|
|
|
|
td[align="right"] { text-align: right; }
|
2014-12-18 07:24:49 +00:00
|
|
|
|
2015-10-08 18:20:55 +00:00
|
|
|
center { text-align: -servo-center; }
|
2015-05-11 20:25:42 +00:00
|
|
|
|
2016-05-13 02:45:38 +00:00
|
|
|
label { cursor: default; }
|
|
|
|
|
2016-03-04 14:44:56 +00:00
|
|
|
input:not([type=radio i]):not([type=checkbox i]):not([type=reset i]):not([type=button i]):not([type=submit i]),
|
2016-03-04 19:23:33 +00:00
|
|
|
textarea {
|
|
|
|
cursor: text;
|
|
|
|
overflow: hidden;
|
|
|
|
-servo-overflow-clip-box: content-box;
|
|
|
|
}
|
2016-03-04 14:44:56 +00:00
|
|
|
|
2016-09-30 18:16:56 +00:00
|
|
|
input:not([type=radio i]):not([type=checkbox i]):not([type=reset i]):not([type=button i]):not([type=submit i]) {
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
|
2016-07-17 20:52:46 +00:00
|
|
|
textarea {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2016-07-01 06:19:28 +00:00
|
|
|
/* https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements */
|
2016-03-20 07:57:59 +00:00
|
|
|
details {
|
|
|
|
display: block;
|
|
|
|
}
|
2016-05-15 08:21:29 +00:00
|
|
|
|
2016-03-20 07:57:59 +00:00
|
|
|
details::-servo-details-summary {
|
|
|
|
margin-left: 40px;
|
|
|
|
display: list-item;
|
|
|
|
list-style: disclosure-closed;
|
|
|
|
}
|
2016-05-15 08:21:29 +00:00
|
|
|
|
2016-03-20 07:57:59 +00:00
|
|
|
details[open]::-servo-details-summary {
|
|
|
|
list-style: disclosure-open;
|
|
|
|
}
|
2016-05-15 08:21:29 +00:00
|
|
|
|
2016-04-29 21:27:16 +00:00
|
|
|
*|*::-servo-details-content {
|
2016-03-20 07:57:59 +00:00
|
|
|
margin-left: 40px;
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
}
|
2016-05-15 08:21:29 +00:00
|
|
|
|
2016-04-25 12:55:42 +00:00
|
|
|
/*
|
|
|
|
* Until servo supports svg properly, make sure to at least prevent svg
|
|
|
|
* children from being layed out and rendered like usual html.
|
|
|
|
* https://github.com/servo/servo/issues/10646
|
|
|
|
*/
|
|
|
|
svg > * {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-09-24 02:08:19 +00:00
|
|
|
|
|
|
|
*|*::-servo-input-text {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2016-10-27 01:14:04 +00:00
|
|
|
|
|
|
|
*|*::-servo-table-wrapper {
|
|
|
|
display: table;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
*|*::-servo-anonymous-table-wrapper {
|
|
|
|
position: static;
|
|
|
|
margin: 0;
|
|
|
|
counter-increment: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
*|*::-servo-anonymous-table {
|
|
|
|
display: table;
|
|
|
|
position: static;
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
counter-increment: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
*|*::-servo-anonymous-table-row {
|
|
|
|
display: table-row;
|
|
|
|
position: static;
|
|
|
|
border: none;
|
|
|
|
counter-increment: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
*|*::-servo-anonymous-table-cell {
|
|
|
|
display: table-cell;
|
|
|
|
position: static;
|
|
|
|
border: none;
|
|
|
|
counter-increment: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
*|*::-servo-anonymous-block {
|
|
|
|
display: block;
|
|
|
|
position: static;
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|