Created
February 16, 2014 00:16
-
-
Save mishelen/9027280 to your computer and use it in GitHub Desktop.
:not(выделение текста) + автоколонирование
This file contains 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
/* one item */ | |
li:nth-child(1):nth-last-child(1) { | |
width: 100%; | |
} | |
/* two items */ | |
li:nth-child(1):nth-last-child(2), | |
li:nth-child(2):nth-last-child(1) { | |
width: 50%; | |
} | |
/* three items */ | |
li:nth-child(1):nth-last-child(3), | |
li:nth-child(2):nth-last-child(2), | |
li:nth-child(3):nth-last-child(1) { | |
width: 33.3333%; | |
} | |
/* four items */ | |
li:nth-child(1):nth-last-child(4), | |
li:nth-child(2):nth-last-child(3), | |
li:nth-child(3):nth-last-child(2), | |
li:nth-child(4):nth-last-child(1) { | |
width: 25%; | |
} |
This file contains 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
.disable_text_highlighting { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment