Skip to content

Commit a7c42f4

Browse files
committed
making changes necessary to fix the datepicker style issues
1 parent dae8693 commit a7c42f4

File tree

2 files changed

+77
-40
lines changed

2 files changed

+77
-40
lines changed

css/custom-theme/jquery-ui-1.8.16.custom.css

Lines changed: 77 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,7 @@
5858
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_75_ffffff_1x400.png) 50% 50% repeat-x; color: #404040; }
5959
.ui-widget-content a { color: #404040; }
6060
.ui-widget-header {
61-
/*border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold;*/
62-
63-
64-
6561
font-weight:bold;
66-
/*
67-
background-color: #0064cd;
68-
background-repeat: repeat-x;
69-
background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
70-
background-image: -moz-linear-gradient(top, #049cdb, #0064cd);
71-
background-image: -ms-linear-gradient(top, #049cdb, #0064cd);
72-
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
73-
background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);
74-
background-image: -o-linear-gradient(top, #049cdb, #0064cd);
75-
background-image: linear-gradient(top, #049cdb, #0064cd);
76-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0);*/
77-
/*text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);*/
78-
7962
border-color: #0064cd #0064cd #003f81;
8063
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
8164
border:1px solid #666;
@@ -210,7 +193,7 @@ border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_inset-soft_95_fe
210193
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
211194
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
212195
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
213-
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
196+
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
214197

215198

216199

@@ -908,7 +891,16 @@ margin-bottom:-1px;
908891
* http://docs.jquery.com/UI/Datepicker#theming
909892
*/
910893
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
911-
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; border:0px; }
894+
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; border:0px;
895+
896+
font-weight: bold;
897+
width: 100%;
898+
padding: 4px 0;
899+
background-color: #f5f5f5;
900+
color: #808080;
901+
902+
903+
}
912904
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
913905
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
914906
.ui-datepicker .ui-datepicker-prev { left:2px; }
@@ -965,7 +957,65 @@ margin-bottom:-1px;
965957
left: -4px; /*must have*/
966958
width: 200px; /*must have*/
967959
height: 200px; /*must have*/
968-
}/*
960+
}
961+
962+
.ui-datepicker th{
963+
font-weight: bold;
964+
color: gray;
965+
}
966+
967+
.ui-datepicker-today a:hover{
968+
background-color: #808080;
969+
color: #ffffff;
970+
971+
}
972+
.ui-datepicker-today a{
973+
background-color: #BFBFBF;
974+
cursor: pointer;
975+
padding: 0 4px;
976+
margin-bottom:0px;
977+
978+
}
979+
980+
981+
.ui-datepicker td a{
982+
margin-bottom:0px;
983+
border:0px;
984+
}
985+
986+
.ui-datepicker td:hover{
987+
color:white;
988+
}
989+
990+
.ui-datepicker td .ui-state-default {
991+
border:0px;
992+
background:none;
993+
margin-bottom:0px;
994+
padding:5px;
995+
}
996+
997+
998+
.ui-datepicker td .ui-state-active{
999+
background:#BFBFBF;
1000+
margin-bottom:0px;
1001+
font-size:normal;
1002+
text-shadow: 0px;
1003+
color:white;
1004+
-webkit-border-radius: 4px;
1005+
-moz-border-radius: 4px;
1006+
border-radius: 4px;
1007+
}
1008+
1009+
.ui-datepicker td .ui-state-default:hover{
1010+
background:#0064cd;
1011+
color:white;
1012+
-webkit-border-radius: 4px;
1013+
-moz-border-radius: 4px;
1014+
border-radius: 4px;
1015+
}
1016+
1017+
1018+
/*
9691019
* jQuery UI Progressbar 1.8.16
9701020
*
9711021
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
@@ -1038,3 +1088,10 @@ textarea,
10381088
border-radius: 3px;
10391089
}
10401090

1091+
1092+
1093+
1094+
1095+
1096+
1097+

index.html

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -603,26 +603,6 @@ <h2 class="demoHeaders">Framework Icons (content color preview)</h2>
603603
#tabs2 { margin-top: 1em; }
604604
#tabs2 li .ui-icon-close { float: left; margin: 0.4em 0.2em 0 0; cursor: pointer; }
605605
#add_tab { cursor: pointer; }
606-
607-
.ui-datepicker td .ui-state-default {
608-
border:0px;
609-
background:none;
610-
margin-bottom:0px;
611-
}
612-
613-
.ui-datepicker-calendar{
614-
border:0px;
615-
}
616-
.ui-datepicker-current-day, .ui-datepicker-today a{
617-
margin-bottom:0px;
618-
}
619-
620-
.ui-datepicker td .ui-state-active{
621-
margin-bottom:0px;
622-
font-weight:bold;
623-
font-size:normal;
624-
}
625-
626606
</style>
627607

628608

0 commit comments

Comments
 (0)