Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from plone/fix891
Date-Time widget fixes referencing issue 891 from Products.CMFPlone
- Loading branch information
Showing
4 changed files
with
79 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 11 additions & 27 deletions
38
plonetheme/barceloneta/theme/less/barceloneta-compiled.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,96 @@ | ||
//*// PICK A DATE //*// | ||
|
||
.pattern-pickadate-wrapper { | ||
.pattern-pickadate-time-wrapper { | ||
float:left; | ||
.picker__input { | ||
width: 180px; | ||
} | ||
} | ||
.pattern-pickadate-time-wrapper { | ||
float:left; | ||
.picker__input { | ||
width: 180px; | ||
} | ||
} | ||
} | ||
.pattern-pickadate-wrapper .pattern-pickadate-date-wrapper .picker__holder { | ||
width: 300px; | ||
width: 300px; | ||
} | ||
.picker--time { | ||
min-width: 256px; | ||
max-width: 320px; | ||
min-width: 256px; | ||
max-width: 320px; | ||
} | ||
#content .picker--opened .picker__holder { | ||
opacity: 1; | ||
opacity: 1; | ||
} | ||
.picker__holder { | ||
width: 180px; | ||
margin: -1px 0 0 0; | ||
border:1px solid @plone-input-border; | ||
overflow-y: auto; | ||
-webkit-overflow-scrolling: touch; | ||
max-height: 300px; | ||
border-radius: 0 0 @plone-border-radius-base @plone-border-radius-base; | ||
box-shadow: 0 1px 2px rgba(0,0,0,.17); | ||
width: 180px; | ||
margin: -1px 0 0 0; | ||
border:1px solid @plone-input-border; | ||
overflow-y: auto; | ||
-webkit-overflow-scrolling: touch; | ||
max-height: 300px; | ||
border-radius: 0 0 @plone-border-radius-base @plone-border-radius-base; | ||
box-shadow: 0 1px 2px rgba(0,0,0,.17); | ||
} | ||
|
||
.picker__wrap { | ||
margin: 0; /* overrides -1px used to get rid of unecessary scrollbar */ | ||
} | ||
.picker__list-item:hover { | ||
background: @plone-table-bg-hover; | ||
color: @plone-gray-dark; | ||
background: @plone-table-bg-hover; | ||
color: @plone-gray-dark; | ||
} | ||
.picker__list-item--highlighted:hover, .picker--focused .picker__list-item--highlighted { | ||
background: @plone-link-color; | ||
color: #fff; | ||
background: @plone-link-color; | ||
color: #fff; | ||
} | ||
li.picker__list-item { | ||
padding: @plone-padding-base-vertical @plone-padding-base-horizontal; | ||
cursor: pointer; | ||
color: @plone-gray; | ||
padding: @plone-padding-base-vertical @plone-padding-base-horizontal; | ||
cursor: pointer; | ||
color: @plone-gray; | ||
} | ||
ul.picker__list { | ||
background: #fff; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.picker__button--clear, .picker__footer button { | ||
width: 100%; | ||
border-left: 0; | ||
border-right: 0; | ||
border-bottom: 0; | ||
border-radius: 0; | ||
} | ||
.picker__footer button { width:50% !important; } | ||
background: #fff; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.picker--time .picker__button--clear { | ||
width: 100%; | ||
border-left: 0; | ||
border-right: 0; | ||
border-bottom: 0; | ||
border-radius: 0; | ||
} | ||
|
||
.picker__table { | ||
width: 100%; | ||
text-align: center; | ||
width: 100%; | ||
text-align: center; | ||
} | ||
.picker__table th {text-align: center;} | ||
|
||
.picker__header {text-align: center; position: relative;} | ||
.picker__nav--next, .picker__nav--prev { | ||
position: absolute; | ||
} | ||
.picker__nav--next:before, .picker__nav--prev:before { | ||
content: "«"; | ||
font-size: 25px; | ||
font-weight: 100; | ||
margin-left: 5px; | ||
top: -2px; | ||
position: relative; | ||
color: #08c; | ||
} | ||
.picker__nav--prev:before { | ||
content: "»"; | ||
font-size: 25px; | ||
font-weight: 100; | ||
margin-right: 5px; | ||
top: -2px; | ||
position: relative; | ||
color: #08c; | ||
} | ||
.picker__select--month, .picker__select--year {width:35%; display: inline-block; margin: 0 6px;} | ||
position: absolute; | ||
top: 0.5em; | ||
} | ||
|
||
.picker__select--month, .picker__select--year { | ||
width:35%; | ||
display: inline-block; | ||
margin: 0 6px; | ||
font-size: 1em; | ||
} | ||
|
||
.picker__day { | ||
font-weight: 400; | ||
} | ||
.picker__day--infocus:hover, .picker__day--outfocus:hover { | ||
cursor: pointer; | ||
background: @plone-table-bg-hover; | ||
cursor: pointer; | ||
background: @plone-table-bg-hover; | ||
} | ||
.picker__day--highlighted:hover, .picker__day--highlighted { | ||
background: @plone-link-color; | ||
color: #fff; | ||
background: @plone-link-color; | ||
color: #fff; | ||
font-weight: 600; | ||
} | ||
.picker__day--outfocus { | ||
color: @plone-gray-lighter; | ||
} | ||
.picker__day--today { | ||
font-weight: 600; | ||
color: @plone-gray-lighter; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|