Created
April 7, 2017 13:58
-
-
Save lvl99/25adbdb9d225581ccaa6a772a0ecc551 to your computer and use it in GitHub Desktop.
Object-oriented inspired composable LESS mixins. View the article on the blog: http://blog.lvl99.com
This file contains hidden or 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
.modal { | |
.ui-lvl99-modal(@ns: ‘modal’); | |
.-modal-init-default({ | |
background: red; | |
padding: 40px; | |
}); | |
} | |
// ... would output the following CSS | |
.modal { | |
display: none; | |
overflow: hidden; | |
height: 0; | |
position: fixed; | |
left: 0; | |
top: 0; | |
width: 100%; | |
pointer-events: none; | |
background: red; | |
padding: 40px; | |
} | |
.modal.ui-modal-show { | |
display: block; | |
overflow: auto; | |
height: 100%; | |
pointer-events: auto; | |
} | |
.modal.ui-modal-hide { | |
display: none; | |
overflow: hidden; | |
height: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment