-
Для кнопки устанавливаем [data-valid-form] , для блок на странице где находятся поля [data-valid-init]
-
В поля, которые нужно проверять добавляем [data-valid-pattern], где указываем имя варианта проверки для поля:
[data-valid-pattern="required|min:{num}|max:{num}|minnum:{num}|maxnum:{num}|letters|letters-space|en|en-space|ru-space|ru|phone|email|checked|nochecked"]
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
ol {list-style:none;} | |
ol > li:first-child {counter-reset: item;} /* reset counter */ | |
ol > li {counter-increment: item;} /* increment counter */ | |
ol > li:before {content:counters(item, ".") ". "; font-weight:bold;} /* print counter */ |
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
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { | |
... | |
} |
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
.text-block { | |
height:{optional}; | |
display: -webkit-box; <--- (flexbox version year 2011) | |
-webkit-line-clamp: 4; <--- (Firefox not supported) | |
-webkit-box-orient: vertical; | |
} |