react-datepicker2-elhampour
Version:
react datepicker component. (include persian jalaali calendar)
444 lines (387 loc) • 7.27 kB
CSS
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
vertical-align: baseline; }
html {
line-height: 1; }
ol,
ul {
list-style: none; }
table {
border-collapse: collapse;
border-spacing: 0; }
caption,
th,
td {
text-align: left;
font-weight: normal;
vertical-align: middle; }
q,
blockquote {
quotes: none; }
q:before,
q:after,
blockquote:before,
blockquote:after {
content: "";
content: none; }
a img {
border: none; }
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary {
display: block; }
/*
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #333;
-webkit-text-size-adjust: none; }
.hljs-comment,
.diff .hljs-header {
color: #998;
font-style: italic; }
.hljs-keyword,
.css .rule .hljs-keyword,
.hljs-winutils,
.nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
color: #333;
font-weight: bold; }
.hljs-number,
.hljs-hexcolor,
.ruby .hljs-constant {
color: #008080; }
.hljs-string,
.hljs-tag .hljs-value,
.hljs-doctag,
.tex .hljs-formula {
color: #d14; }
.hljs-title,
.hljs-id,
.scss .hljs-preprocessor {
color: #900;
font-weight: bold; }
.hljs-list .hljs-keyword,
.hljs-subst {
font-weight: normal; }
.hljs-class .hljs-title,
.hljs-type,
.vhdl .hljs-literal,
.tex .hljs-command {
color: #458;
font-weight: bold; }
.hljs-tag,
.hljs-tag .hljs-title,
.hljs-rule .hljs-property,
.django .hljs-tag .hljs-keyword {
color: #000080;
font-weight: normal; }
.hljs-attribute,
.hljs-variable,
.lisp .hljs-body,
.hljs-name {
color: #008080; }
.hljs-regexp {
color: #009926; }
.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.lisp .hljs-keyword,
.clojure .hljs-keyword,
.scheme .hljs-keyword,
.tex .hljs-special,
.hljs-prompt {
color: #990073; }
.hljs-built_in {
color: #0086b3; }
.hljs-preprocessor,
.hljs-pragma,
.hljs-pi,
.hljs-doctype,
.hljs-shebang,
.hljs-cdata {
color: #999;
font-weight: bold; }
.hljs-deletion {
background: #fdd; }
.hljs-addition {
background: #dfd; }
.diff .hljs-change {
background: #0086b3; }
.hljs-chunk {
color: #aaa; }
.hero {
color: #fff;
background-color: #6abcf3; }
.hero__content {
text-align: center;
padding: 175px 0; }
.hero__title {
font-size: 34px;
font-weight: 600;
line-height: 1.2;
margin: 0;
padding: 0;
border-bottom: 0;
margin-bottom: 5px; }
.hero__image {
height: 14px; }
.hero__example {
width: 210px;
margin: 0 auto; }
.hero__crafted-by {
margin-bottom: 30px; }
.hero__crafted-by-link {
color: #fff; }
.github-ribbon {
position: absolute;
top: 0;
right: 0;
border: 0; }
.examples__navigation {
display: none; }
@media (min-width: 640px) {
.examples__navigation {
width: 200px;
float: left;
display: block;
list-style: none;
margin: 0;
margin-right: 20px;
border: 1px solid #e4e4e4;
background: #fff;
border-radius: 4px;
overflow: hidden; } }
.examples__navigation-item {
border-bottom: 1px solid #e4e4e4; }
.examples__navigation-item:last-child {
border-bottom: none; }
.examples__navigation-item a {
padding: 10px;
color: inherit;
text-decoration: none;
display: block; }
.examples__navigation-item a:hover {
background: #f5f5f5;
text-decoration: underline; }
.examples {
overflow: hidden; }
.example {
background-color: #fff;
border-radius: 4px;
border: 1px solid #e4e4e4;
padding: 20px;
margin-bottom: 20px; }
.example__heading {
color: #216ba5;
font-weight: 400;
font-size: 18px;
border: 0;
margin: 0;
padding: 0;
margin-bottom: 20px; }
.example__code {
background-color: #f5f8fb;
padding: 20px;
margin: 0 -20px 20px;
border-top: 1px solid #d8e4ef;
border-bottom: 1px solid #d8e4ef;
overflow-x: auto;
overflow-y: hidden; }
@media (min-width: 768px) {
.example__code {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-right: 1px solid #d8e4ef;
margin-bottom: 0; } }
.example__code code {
background: none;
border: 0; }
.red-border {
border-color: #f00; }
.rasta-stripes .react-datepicker__week:nth-child(3n+1) {
background-color: #215005; }
.rasta-stripes .react-datepicker__week:nth-child(3n+2) {
background-color: #eea429; }
.rasta-stripes .react-datepicker__week:nth-child(3n+3) {
background-color: #a82a15; }
.example-custom-input {
cursor: pointer;
padding: 5px 15px;
border: 0;
border-radius: 4px;
background-color: #216ba5;
font: inherit;
color: #fff; }
.example__timezone-selector {
margin-left: 10px; }
.hero__content, .wrapper {
max-width: 1100px;
margin: 0 auto; }
html,
body {
height: 100%;
background: #f5f5f5;
font-family: "Open Sans", sans-serif;
color: #555;
font-size: 14px;
line-height: 21px; }
html input,
body input {
width: 100%; }
a {
text-decoration: none; }
p {
margin-bottom: 15px; }
ul {
list-style: disc;
margin-left: 40px;
margin-bottom: 15px; }
h1,
h2 {
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4; }
h1 {
padding-bottom: .3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee; }
h2 {
padding-bottom: .3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee; }
code {
padding: 2px 4px;
border: 1px solid #ccc;
margin: 0;
font-size: 85%;
background-color: #e8e7e7;
border-radius: 3px;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; }
strong {
font-weight: 600; }
.wrapper {
padding: 20px; }
@media (min-width: 768px) {
.row {
display: flex; } }
@media (min-width: 768px) {
.column {
width: 50%; }
.column:first-child {
margin-right: 20px; } }
input {
font-size: 13px;
border-radius: 4px;
box-shadow: inset 0 2px 2px #e9e9e9;
border: 1px solid #aeaeae;
line-height: 16px;
padding: 6px 10px 5px; }
input:focus {
outline: none;
border-color: #aeaeae;
box-shadow: inset 0 2px 2px #e9e9e9, 0 0 10px 0 rgba(73, 107, 125, 0.3); }
.logo {
display: inline;
font-size: 1.4em;
letter-spacing: 1px; }