Skip to content

Commit

Permalink
Merge pull request #44 from plone/fix891
Browse files Browse the repository at this point in the history
Date-Time widget  fixes referencing issue 891 from Products.CMFPlone
  • Loading branch information
ichim-david committed Sep 13, 2015
2 parents 30a685e + d4137ae commit 548fa3a
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 105 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,9 @@ Changelog
1.6.13 (unreleased)
-------------------

- Fix display of date widget arrows and footer buttons (refs `#891`_).
[ichim-david]

- Clean Gruntfile.js, package.json and HOWTO_DEVELOP.rst of grunt
plugins and information which this package no longer uses since
commit 9f5434
Expand Down Expand Up @@ -200,4 +203,5 @@ Changelog
[esteele]

.. _`#741`: https://github.com/plone/Products.CMFPlone/issues/741
.. _`#891`: https://github.com/plone/Products.CMFPlone/issues/891
.. _`#911`: https://github.com/plone/Products.CMFPlone/issues/911
38 changes: 11 additions & 27 deletions plonetheme/barceloneta/theme/less/barceloneta-compiled.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

140 changes: 63 additions & 77 deletions plonetheme/barceloneta/theme/less/pickadate.plone.less
@@ -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;
}









0 comments on commit 548fa3a

Please sign in to comment.