rrule
Version:
JavaScript library for working with recurrence rules for calendar dates.
208 lines (185 loc) • 3.07 kB
CSS
body {
font: 14px/1.4 sans-serif;
color: #111;
background: #fafafa;
}
a {
color: #366097;
}
h2, h1 {
text-align: center;
font-family: georgia, serif;
font-size: 3em;
font-weight: normal;
}
h2 {
font-size: 2.5em;
margin-bottom: .7em;
}
pre, ol {
margin: 0
}
table {
border-collapse: collapse;
width: 100%;
}
table, td, th {
border: 1px solid #fafafa;
}
td, th {
padding: .4em;
}
tbody th {
text-align: right;
width: 10em;
}
code, label {
background: #fff;
border-radius: .3em;
padding: .2em .3em;
border: 1px solid #ededed;
}
label {
white-space: nowrap;
display: inline-block;
margin: 0 .3em .3em 0;
cursor: pointer;
font-size: .9em;
}
input:not([type=checkbox]):not([type=radio]), select {
width: 100%;
font-size: 1.4em;
box-sizing: border-box;
}
input {
padding: .2em;
}
.error {
color: red;
}
#page {
min-width: 960px;
margin: auto;
}
#intro {
text-align: center;
font-size: 1.2em;
}
/* Input
-------------------------------------- */
#tabs {
border-bottom: 1px solid #111;
text-align: center;
}
#tabs a {
background: #111;
border: 1px solid #111;
padding: .4em 1em;
margin: 0 .5em -1px;
color: #eee;
display: inline-block;
text-decoration: none;
font-weight: bold;
font-size: 1.1em;
border-top-left-radius: .2em;
border-top-right-radius: .2em;
}
#tabs a.active {
color: #111;
background: #fafafa;
border-bottom-color: #fafafa;
}
#input {
float: left;
width: 40%
}
#input th {
width: 7em ;
}
#input section {
padding: 1em;
}
.examples li {
margin-bottom: .7em;
}
.examples code {
cursor: pointer;
}
#rfc-input input {
font-family: monospace;
}
#options-input input, #options-input select {
font-size: 1em;
}
.option-name {
position: relative;
cursor: help;
}
.option-name .help {
border-radius: .3em;
font-weight: normal;
display: none;
position: absolute;
padding: 1em;
background: #333;
color: #fafafa;
border: 1px solid #000;
left: 110%;
right: -100%;
width: 350px;
text-align: left;
top: -1em;
box-shadow: 3px 3px 3px #888;
line-height: 1.6;
font-size: .9em;
}
.option-name .help code {
color: #fff;
background: #000;
}
.option-name:hover code:first-child{
background: #222;
color: #fafafa;
}
.option-name:hover .help {
display: block;
}
/* Output
-------------------------------------- */
#output {
float: right;
width: 58%
}
#output pre {
white-space: pre-wrap;
}
#output td {
background: #fff;
}
#output td, #output th {
vertical-align: top;
}
#output li {
font-family: monospace;
}
#output li:nth-child(even) {
background: #f1f1f1;
}
#dates {
font-size: .9em;
}
#dates td:first-child {
color: #ccc;
}
#dates td:first-child {
text-align: right;
}
#dates td.b {
background: #eaeaea;
}
#dates td.b {
background: #f0f0f0;
}
#output a {
color: inherit
}