mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
* Add local slick files to use instead of CDN
* Override CSS to display widget correctly
* Adjust arrow button size/placement
* Bump version
* Rename __openerp__.py -> __manifest__.py
* Rename widget_slick.js -> web_widget_slick.js
* Update copyright, license (AGPL -> LGPL)
* Update readme
* Correct eslint errors
* Change module name in various places for consistency
* Improve styling of widget arrows, dots
* Change css -> less
* Remove unneeded slick files
* Copyright 2017 -> 2016-2017
* Add OCA to authors
* Use OCA icon
* Fix readme
* Clean up assets
* Fix file permissions
* Update readme with reference to example module
* Fix formatting error, incorrect link
* Add javascript tests
* Add note to readme about functional testing with example module
* Fix/cleanup javascript
* Fix destroy_content() method
* Move slide navigation out of slide addition loop
* Remove unused variables
* Remove unneeded DOM append
* Reorganize files/directories
* Adjust template tags (templates -> template)
* Add slick-field class to field template instead of using jQuery
* Misc cleanup
* Adjust breakpoint settings to show fewer images by default
* Enable adaptiveHeight by default
* Add .img and .img-responsive classes to images
* Fix dragging issues by preventing default mousedown and
touchstart event behavior
* Set swipeToSlide default to true
* Change how slick slides are populated to allow grid mode
* Fix issue causing carousel images to display improperly in some
situations
* Add better functional testing instructions to readme
* Add roadmap to readme
* Make minor styling changes
* Fix issue with template loading w/ PhantomJS
* Clean up template, use css class provided by widget
* Remove unneeded dependency from tests
* Break up render_value method
* Break up destroy_content method
* Add unslicking to destroy_content, add test
* Clean up qweb template formatting
* Fix indentation
* Change widget name
* Add Slick copyright information
* Add padding left/right, move arrows in to avoid clipping when
widget not in a sheet tag
* Apply dot and arrow styles only when needed
* Add _resizeCarousel() and related methods to ensure accurate
carousel sizing in various views
* Resize carousel on core.bus resize
* Account for differences in group layouts and labels,
sheet/no-sheet layouts
* Adjust, clean up less
* Clean up js
173 lines
4.2 KiB
Plaintext
Executable File
173 lines
4.2 KiB
Plaintext
Executable File
/* Copyright 2013-2016 Ken Wheeler
|
|
* Version 1.7.1
|
|
* License MIT (https://opensource.org/licenses/MIT) */
|
|
|
|
@charset "UTF-8";
|
|
|
|
// Default Variables
|
|
|
|
@slick-font-path: "./fonts/";
|
|
@slick-font-family: "slick";
|
|
@slick-loader-path: "./";
|
|
@slick-arrow-color: white;
|
|
@slick-dot-color: black;
|
|
@slick-dot-color-active: @slick-dot-color;
|
|
@slick-prev-character: "←";
|
|
@slick-next-character: "→";
|
|
@slick-dot-character: "•";
|
|
@slick-dot-size: 6px;
|
|
@slick-opacity-default: 0.75;
|
|
@slick-opacity-on-hover: 1;
|
|
@slick-opacity-not-active: 0.25;
|
|
|
|
/* Slider */
|
|
.slick-loading .slick-list{
|
|
background: #fff url('@{slick-loader-path}ajax-loader.gif') center center no-repeat;
|
|
}
|
|
|
|
/* Arrows */
|
|
.slick-prev,
|
|
.slick-next {
|
|
position: absolute;
|
|
display: block;
|
|
height: 20px;
|
|
width: 20px;
|
|
line-height: 0px;
|
|
font-size: 0px;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
color: transparent;
|
|
top: 50%;
|
|
-webkit-transform: translate(0, -50%);
|
|
-ms-transform: translate(0, -50%);
|
|
transform: translate(0, -50%);
|
|
padding: 0;
|
|
border: none;
|
|
outline: none;
|
|
&:hover, &:focus {
|
|
outline: none;
|
|
background: transparent;
|
|
color: transparent;
|
|
&:before {
|
|
opacity: @slick-opacity-on-hover;
|
|
}
|
|
}
|
|
&.slick-disabled:before {
|
|
opacity: @slick-opacity-not-active;
|
|
}
|
|
}
|
|
|
|
.slick-prev:before, .slick-next:before {
|
|
font-family: @slick-font-family;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
color: @slick-arrow-color;
|
|
opacity: @slick-opacity-default;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
& when ( @slick-font-family = 'slick' ) {
|
|
/* Icons */
|
|
@font-face {
|
|
font-family: 'slick';
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
src: url('@{slick-font-path}slick.eot');
|
|
src: url('@{slick-font-path}slick.eot?#iefix') format('embedded-opentype'), url('@{slick-font-path}slick.woff') format('woff'), url('@{slick-font-path}slick.ttf') format('truetype'), url('@{slick-font-path}slick.svg#slick') format('svg');
|
|
}
|
|
}
|
|
}
|
|
|
|
.slick-prev {
|
|
left: -25px;
|
|
[dir="rtl"] & {
|
|
left: auto;
|
|
right: -25px;
|
|
}
|
|
&:before {
|
|
content: @slick-prev-character;
|
|
[dir="rtl"] & {
|
|
content: @slick-next-character;
|
|
}
|
|
}
|
|
}
|
|
|
|
.slick-next {
|
|
right: -25px;
|
|
[dir="rtl"] & {
|
|
left: -25px;
|
|
right: auto;
|
|
}
|
|
&:before {
|
|
content: @slick-next-character;
|
|
[dir="rtl"] & {
|
|
content: @slick-prev-character;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Dots */
|
|
|
|
.slick-dotted .slick-slider {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.slick-dots {
|
|
position: absolute;
|
|
bottom: -25px;
|
|
list-style: none;
|
|
display: block;
|
|
text-align: center;
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
li {
|
|
position: relative;
|
|
display: inline-block;
|
|
height: 20px;
|
|
width: 20px;
|
|
margin: 0 5px;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
button {
|
|
border: 0;
|
|
background: transparent;
|
|
display: block;
|
|
height: 20px;
|
|
width: 20px;
|
|
outline: none;
|
|
line-height: 0px;
|
|
font-size: 0px;
|
|
color: transparent;
|
|
padding: 5px;
|
|
cursor: pointer;
|
|
&:hover, &:focus {
|
|
outline: none;
|
|
&:before {
|
|
opacity: @slick-opacity-on-hover;
|
|
}
|
|
}
|
|
&:before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
content: @slick-dot-character;
|
|
width: 20px;
|
|
height: 20px;
|
|
font-family: @slick-font-family;
|
|
font-size: @slick-dot-size;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
color: @slick-dot-color;
|
|
opacity: @slick-opacity-not-active;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
}
|
|
&.slick-active button:before {
|
|
color: @slick-dot-color-active;
|
|
opacity: @slick-opacity-default;
|
|
}
|
|
}
|
|
}
|