mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-18 03:31:16 +02:00
Checkbox module update
This commit is contained in:
@@ -315,3 +315,7 @@
|
|||||||
- Deployed updated demo page.
|
- Deployed updated demo page.
|
||||||
- Added a new mixin `add-grid-row-cards-alignment` without parameters that allows `row`s to align the elements they contain automatically horizontally.
|
- Added a new mixin `add-grid-row-cards-alignment` without parameters that allows `row`s to align the elements they contain automatically horizontally.
|
||||||
- Deployed demo again.
|
- Deployed demo again.
|
||||||
|
|
||||||
|
## 20161109
|
||||||
|
|
||||||
|
- Changed `checkbox` module a little bit to use `floor()` functions to fill the `:after` part, so that everything will look kinda tidier on most browsers. This has been modified after testing on more screens and noticing some minor discrepancies with the way `radio`s are presented.
|
||||||
|
@@ -60,12 +60,12 @@
|
|||||||
// Fill for checked checkbox/radio elements.
|
// Fill for checked checkbox/radio elements.
|
||||||
[type="checkbox"]:checked + label, [type="radio"]:checked + label{
|
[type="checkbox"]:checked + label, [type="radio"]:checked + label{
|
||||||
&:after {
|
&:after {
|
||||||
margin-left: -($checkbox-size + ($checkbox-size * 0.25));
|
margin-left: - floor($checkbox-size + floor($checkbox-size * 0.25));
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: ($checkbox-size - ($checkbox-size * 0.55))/2;
|
top: ($checkbox-size - floor($checkbox-size * 0.55))/2;
|
||||||
left: ($checkbox-size - ($checkbox-size * 0.55))/2;
|
left: ($checkbox-size - floor($checkbox-size * 0.55))/2;
|
||||||
width: ($checkbox-size * 0.55);
|
width: floor($checkbox-size * 0.55);
|
||||||
height: ($checkbox-size * 0.55);
|
height: floor($checkbox-size * 0.55);
|
||||||
background: $checkbox-fore-color;
|
background: $checkbox-fore-color;
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user