Skip to content

Instantly share code, notes, and snippets.

@Koniksan
Koniksan / styling-list.css
Created January 14, 2018 13:11
Styling ordered list (multiple list support support)
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 */
@Koniksan
Koniksan / isIEbrowser.css
Last active November 30, 2017 08:55
Definition of Edge or Internet Explorer Browser , 2 solutions.
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
...
}
@Koniksan
Koniksan / README.md
Last active August 11, 2017 14:59
A great validation plugin created by Dmitriy Golovenchik (Lovata.com)

simpleValid

version 1.3.0


  1. Для кнопки устанавливаем [data-valid-form] , для блок на странице где находятся поля [data-valid-init]

  2. В поля, которые нужно проверять добавляем [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"]

.text-block {
height:{optional};
display: -webkit-box; <--- (flexbox version year 2011)
-webkit-line-clamp: 4; <--- (Firefox not supported)
-webkit-box-orient: vertical;
}