mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-17 19:26:19 +02:00
Checkbox module update
This commit is contained in:
@@ -315,3 +315,7 @@
|
||||
- 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.
|
||||
- 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.
|
||||
[type="checkbox"]:checked + label, [type="radio"]:checked + label{
|
||||
&:after {
|
||||
margin-left: -($checkbox-size + ($checkbox-size * 0.25));
|
||||
margin-left: - floor($checkbox-size + floor($checkbox-size * 0.25));
|
||||
position: absolute;
|
||||
top: ($checkbox-size - ($checkbox-size * 0.55))/2;
|
||||
left: ($checkbox-size - ($checkbox-size * 0.55))/2;
|
||||
width: ($checkbox-size * 0.55);
|
||||
height: ($checkbox-size * 0.55);
|
||||
top: ($checkbox-size - floor($checkbox-size * 0.55))/2;
|
||||
left: ($checkbox-size - floor($checkbox-size * 0.55))/2;
|
||||
width: floor($checkbox-size * 0.55);
|
||||
height: floor($checkbox-size * 0.55);
|
||||
background: $checkbox-fore-color;
|
||||
content: '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user