Advertisement
decembre

CSS - COUNTER v.1

May 8th, 2016
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.13 KB | None | 0 0
  1.  
  2. ============================
  3. ======== CSS - COUNTER v.1 - POSTé
  4. ============================
  5.  
  6. ============================
  7. ======== Automatic counters and numbering
  8. == http://www.w3.org/TR/CSS21/generate.html
  9.  
  10. Automatic numbering in CSS 2.1 is controlled with two properties:
  11. 'counter-increment' and 'counter-reset'.
  12.  
  13. The counters defined by these properties are used with the counter() and counters() functions of the the 'content' property.
  14.  
  15. 'counter-reset'
  16. Value: [ <identifier> <integer>? ]+ | none | inherit
  17. Initial: none
  18. Applies to: all elements
  19. Inherited: no
  20. Percentages: N/A
  21. Media: all
  22. Computed value: as specified
  23.  
  24. 'counter-increment'
  25. Value: [ <identifier> <integer>? ]+ | none | inherit
  26. Initial: none
  27. Applies to: all elements
  28. Inherited: no
  29. Percentages: N/A
  30. Media: all
  31. Computed value: as specified
  32.  
  33. The 'counter-increment' property accepts one or more names of counters (identifiers),
  34. each one optionally followed by an integer.
  35. The integer indicates by how much the counter is incremented for every occurrence of the element.
  36. The default increment is 1. Zero and negative integers are allowed.
  37.  
  38. The 'counter-reset' property also contains a list of one or more names of counters,
  39. each one optionally followed by an integer.
  40. The integer gives the value that the counter is set to on each occurrence of the element. The default is 0.
  41.  
  42. The keywords 'none', 'inherit' and 'initial' must not be used as counter names.
  43. A value of 'none' on its own means no counters are reset, resp. incremented.
  44. 'Inherit' on its own has its usual meaning (see 6.2.1).
  45. 'Initial' is reserved for future use.
  46.  
  47. This example shows a way to number chapters and sections with "Chapter 1", "1.1", "1.2", etc.
  48.  
  49. BODY {
  50. counter-reset: chapter; /* Create a chapter counter scope */
  51. }
  52. H1:before {
  53. content: "Chapter " counter(chapter) ". ";
  54. counter-increment: chapter; /* Add 1 to chapter */
  55. }
  56. H1 {
  57. counter-reset: section; /* Set section to 0 */
  58. }
  59. H2:before {
  60. content: counter(chapter) "." counter(section) " ";
  61. counter-increment: section;
  62. }
  63.  
  64. If an element increments/resets a counter and also uses it
  65. (in the 'content' property of its :before or :after pseudo-element),
  66. the counter is used after being incremented/reset.
  67.  
  68. If an element both resets and increments a counter, the counter is reset first and then incremented.
  69.  
  70. If the same counter is specified more than once in the value of the 'counter-reset' and 'counter-increment' properties,
  71. each reset/increment of the counter is processed in the order specified.
  72.  
  73. The following example will reset the 'section' counter to 0:
  74.  
  75. H1 { counter-reset: section 2 section }
  76.  
  77. The following example will increment the 'chapter' counter by 3:
  78.  
  79. H1 { counter-increment: chapter chapter 2 }
  80.  
  81. The 'counter-reset' property follows the cascading rules. Thus, due to cascading, the following style sheet:
  82.  
  83. H1 { counter-reset: section -1 }
  84. H1 { counter-reset: imagenum 99 }
  85.  
  86. will only reset 'imagenum'. To reset both counters, they have to be specified together:
  87.  
  88. H1 { counter-reset: section -1 imagenum 99 }
  89.  
  90. 12.4.1 Nested counters and scope
  91.  
  92. Counters are "self-nesting", in the sense that resetting a counter in a descendant element or pseudo-element
  93. automatically creates a new instance of the counter. This is important for situations like lists in HTML,
  94. where elements can be nested inside themselves to arbitrary depth. It would be impossible to define uniquely named counters for each level.
  95.  
  96. Thus, the following suffices to number nested list items.
  97. The result is very similar to that of setting 'display:list-item' and 'list-style: inside' on the LI element:
  98.  
  99. OL { counter-reset: item }
  100. LI { display: block }
  101. LI:before { content: counter(item) ". "; counter-increment: item }
  102.  
  103. The scope of a counter starts at the first element in the document that has a 'counter-reset'
  104. for that counter and includes the element's descendants and its following siblings with their descendants.
  105. However, it does not include any elements in the scope of a counter with the same name created by a 'counter-reset'
  106. on a later sibling of the element or by a later 'counter-reset' on the same element.
  107.  
  108. If 'counter-increment' or 'content' on an element or pseudo-element refers to a counter that is not in the scope of any 'counter-reset',
  109. implementations should behave as though a 'counter-reset' had reset the counter to 0 on that element or pseudo-element.
  110.  
  111. In the example above, an OL will create a counter, and all children of the OL will refer to that counter.
  112.  
  113. If we denote by item[n] the nth instance of the "item" counter, and by "{" and "}" the beginning and end of a scope,
  114. then the following HTML fragment will use the indicated counters. (We assume the style sheet as given in the example above).
  115.  
  116. <OL> <!-- {item[0]=0 -->
  117. <LI>item</LI> <!-- item[0]++ (=1) -->
  118. <LI>item <!-- item[0]++ (=2) -->
  119. <OL> <!-- {item[1]=0 -->
  120. <LI>item</LI> <!-- item[1]++ (=1) -->
  121. <LI>item</LI> <!-- item[1]++ (=2) -->
  122. <LI>item <!-- item[1]++ (=3) -->
  123. <OL> <!-- {item[2]=0 -->
  124. <LI>item</LI> <!-- item[2]++ (=1) -->
  125. </OL> <!-- -->
  126. <OL> <!-- }{item[2]=0 -->
  127. <LI>item</LI> <!-- item[2]++ (=1) -->
  128. </OL> <!-- -->
  129. </LI> <!-- } -->
  130. <LI>item</LI> <!-- item[1]++ (=4) -->
  131. </OL> <!-- -->
  132. </LI> <!-- } -->
  133. <LI>item</LI> <!-- item[0]++ (=3) -->
  134. <LI>item</LI> <!-- item[0]++ (=4) -->
  135. </OL> <!-- -->
  136. <OL> <!-- }{item[0]=0 -->
  137. <LI>item</LI> <!-- item[0]++ (=1) -->
  138. <LI>item</LI> <!-- item[0]++ (=2) -->
  139. </OL> <!-- -->
  140.  
  141. Another example, showing how scope works when counters are used on elements that are not nested, is the following.
  142. This shows how the style rules given above to number chapters and sections would apply to the markup given.
  143.  
  144. <!--"chapter" counter|"section" counter -->
  145. <body> <!-- {chapter=0 | -->
  146. <h1>About CSS</h1> <!-- chapter++ (=1) | {section=0 -->
  147. <h2>CSS 2</h2> <!-- | section++ (=1) -->
  148. <h2>CSS 2.1</h2> <!-- | section++ (=2) -->
  149. <h1>Style</h1> <!-- chapter++ (=2) |}{ section=0 -->
  150. </body> <!-- | } -->
  151.  
  152. The 'counters()' function generates a string composed of all of the counters with the same name that are in scope,
  153. separated by a given string.
  154.  
  155. The following style sheet numbers nested list items as "1", "1.1", "1.1.1", etc.
  156.  
  157. OL { counter-reset: item }
  158. LI { display: block }
  159. LI:before { content: counters(item, ".") " "; counter-increment: item }
  160.  
  161. 12.4.2 Counter styles
  162.  
  163. By default, counters are formatted with decimal numbers,
  164. but all the styles available for the 'list-style-type' property are also available for counters. The notation is:
  165.  
  166. counter(name)
  167.  
  168. for the default style, or:
  169.  
  170. counter(name, <'list-style-type'>)
  171.  
  172. All the styles are allowed, including 'disc', 'circle', 'square', and 'none'.
  173.  
  174. H1:before { content: counter(chno, upper-latin) ". " }
  175. H2:before { content: counter(section, upper-roman) " - " }
  176. BLOCKQUOTE:after { content: " [" counter(bq, lower-greek) "]" }
  177. DIV.note:before { content: counter(notecntr, disc) " " }
  178. P:before { content: counter(p, none) }
  179.  
  180. 12.4.3 Counters in elements with 'display: none'
  181.  
  182. An element that is not displayed ('display' set to 'none') cannot increment or reset a counter.
  183.  
  184. For example, with the following style sheet, H2s with class "secret" do not increment 'count2'.
  185.  
  186. H2.secret {counter-increment: count2; display: none}
  187.  
  188. Pseudo-elements that are not generated also cannot increment or reset a counter.
  189.  
  190. For example, the following does not increment 'heading':
  191.  
  192. h1::before {
  193. content: normal;
  194. counter-increment: heading;
  195. }
  196.  
  197. Elements with 'visibility' set to 'hidden', on the other hand, do increment counters.
  198.  
  199.  
  200. ============================
  201. ======== LISTE - COUNTER - EXAMPLE - FICKR PHOTO COMMENTS
  202. /* (new3) COUNTER COMMENTS ITEMS + NUMBER OF COMMENTS BY ME on TOP RIGHT PANEL near BUDDY ICON - === */
  203. .comments-holder.order-chronological.photosInComments .comments ,
  204. #photo-activity{
  205. counter-increment: myIndex ! important;
  206. counter-reset: myIndex2 00 !important;
  207. }
  208. .sub-photo-comments-view .comments .comment:before ,
  209. #comments #comments-list .comment-block:before {
  210. counter-increment: myIndex ! important;
  211. content: counter(myIndex, decimal-leading-zero);
  212. position: absolute ! important;
  213. width: 15px ! important;
  214. min-width: 17px !important;
  215. margin-left: 1px ! important;
  216. margin-top: -5px ! important;
  217. background: none repeat scroll 0 0 rgba(62, 59, 59, 0.6) !important;
  218. border-radius: 10px !important;
  219. box-shadow: 0 0 2px rgba(162, 160, 160, 0.6) inset !important;
  220. font-size: 10px ! important;
  221. text-align: center ! important;
  222. color: white ! important;
  223. z-index: 10 !important;
  224. }
  225.  
  226.  
  227. .comments .comment-author a[href="/photos/bruno-decembre/"]:after {
  228. counter-increment: myIndex2 ! important;
  229. content: counter(myIndex2, decimal-leading-zero);
  230. /* content: "XXX" !important; */
  231. position: fixed !important;
  232. width: 15px ! important;
  233. min-width: 17px !important;
  234. height: 15px !important;
  235. line-height: 15px !important;
  236. right: 535px !important;
  237. top: 132px !important;
  238. border-radius: 10px !important;
  239. box-shadow: 0 0 2px rgba(162, 160, 160, 0.6) inset !important;
  240. font-size: 10px ! important;
  241. text-align: center ! important;
  242. color: white ! important;
  243. z-index: 10 !important;
  244. /* background: rgba(62, 59, 59, 0.6) !important; */
  245. background: red !important;
  246. }
  247.  
  248. ============================
  249. ======== LISTE - COUNTER - EXAMPLE (XHAM) - OK
  250. #playerBox + #commentBox.box #commentSub.boxC #commentList .item {
  251. counter-increment: myIndex !important;
  252. }
  253. #playerBox + #commentBox.box #commentSub.boxC #commentList .item:before {
  254. background: none repeat scroll 0 0 gold !important;
  255. content: counter(myIndex, decimal);
  256. font-size: 10px !important;
  257. margin-left: -107px !important;
  258. text-align: center !important;
  259. width: 15px !important;
  260. z-index: 10 !important;
  261. }
  262.  
  263. ===
  264. decimal-leading-zero
  265. DECIMAL WITTH 0 before
  266. /* (new5) VIDEO PAGE - COMMENT BLOCK - COMMENTS COUNTER - === */
  267. #playerBox + #commentBox.box #commentSub.boxC #commentList .item {
  268. counter-increment: myIndex ! important;
  269. }
  270. #playerBox + #commentBox.box #commentSub.boxC #commentList .item:before {
  271. width: 15px ! important;
  272. margin-left: -107px ! important;
  273. content: counter(myIndex, decimal-leading-zero);
  274. background: gold ! important;
  275. font-size: 10px ! important;
  276. text-align: center ! important;
  277. z-index: 10 !important;
  278. }
  279.  
  280. /* CAM - MESSAGES COUNTER - === */
  281. #model_dialog.full div#model_messages div {
  282. counter-increment: myIndex !important;
  283. /* counter-reset: myIndex !important; */
  284. }
  285. #model_dialog.full div#model_messages div:before{
  286. background: gold !important;
  287. content: counter(myIndex, decimal);
  288. font-size: 10px !important;
  289. /* margin-left: 7px !important; */
  290. text-align: center !important;
  291. width: 15px !important;
  292. z-index: 10000 !important;
  293. }
  294.  
  295. ============================
  296. ======== LISTE - COUNTER - 3 propriétés et une fonction :
  297. == http://www.creativejuiz.fr/blog/tutoriels/les-compteurs-en-css
  298.  
  299. 1- counter-reset :
  300. cette propriété permet d’initialiser un compteur (le créer). Il suffit pour cela de renseigner un ou plusieurs noms de compteurs suivi de sa valeur numérique initiale.
  301. Exemple :
  302. counter-reset: compteur1 4 compteur2 0;
  303. Ici nous avons deux compteurs initialisés : compteur1 qui démarre à 4, et compteur 2 qui démarre à 0.
  304.  
  305. 2- counter-set :
  306. cette propriété permet de redéfinir la valeur d’un compteur, sans en créer un nouveau.
  307. Il suffit pour cela de renseigner un ou plusieurs noms de compteurs existant suivi de sa nouvelle valeur numérique.
  308. Exemple :
  309. counter-set: compteur1 0 compteur2 3;
  310. Ici nous avons deux compteurs redéfinis : compteur1 qui redémarre à 0, et compteur 2 qui redémarre à 3.
  311.  
  312. 3- counter-increment :
  313. cette propriété permet d’incrémenter un compteur. Il suffit pour cela de renseigner le nom d’un ou plusieurs compteurs,
  314. chacun suivi du chiffre à incrémenter.
  315. Exemple :
  316. counter-increment: compteur1 2 compteur2 4;
  317. Ici nos deux compteurs initiaux seront augmentés de 2 pour le compteur1 et 4 pour le compteur2.
  318.  
  319. counter() :
  320. cette fonction associée au pseudo-élément ::before ou ::after et à la propriété content
  321. permet d’insérer le compteur dans votre page. Cela génère un contenu dynamique.
  322. Elle attend un paramètre et un second optionnel.
  323. Le premier est le nom du compteur, le second et le style de compteur.
  324. (même valeurs que list-style-type)
  325. Exemple :
  326. li::before {
  327. content: counter(compteur1, decimal-leading-zero) " – ";
  328. }
  329. Dans cet exemple, le contenu d’un élément li sera précédé d’un contenu de type « 04 – »
  330.  
  331. Concernant le style du counter, il est possible de spéficier les valeurs
  332. « disc », « circle », « square » et « none »,
  333. ce qui fait qu’il est possible de ne rien générer.
  334. Je n’ai pas encore trouvé d’utilité réelle à ces valeurs.
  335.  
  336.  
  337. ============================
  338. ======== COUNTER - LISTE - ::before and ::after with the COUNTER-RESET AND COUNTER-INCREMENT properties.
  339. == http://coding.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors/
  340. ::before and ::after pseudo-elements are used to insert content before or after an element’s content, purely via CSS.
  341.  
  342. These elements will inherit many of the properties of the elements that they are being attached to.
  343.  
  344. Image you want to the words “Graphic number x:” before the descriptions of graphs and charts on your page.
  345. You could achieve this without having to write the words “Graphic number”, or the number itself yourself:
  346.  
  347. .post {
  348. counter-reset: image;
  349. }
  350.  
  351. p.description::before {
  352. content: "Figure number " counter(image) ": ";
  353. counter-increment: image;
  354. }
  355.  
  356. What just happened here?
  357.  
  358. First, we tell the HTML to CREATE THE “IMAGE” COUNTER :
  359. We could have added this property to the body of the page, for example.
  360. Also, we can call this counter whatever name we want to,
  361. as long as we always reference it by the same name: try it for yourself!
  362.  
  363. Then we say that we want to add, before every paragraph with the class “description”,
  364. this piece of content: “Figure number ”
  365. — notice that only what we wrote between quotes will be created on the page, so we need to add the spaces as well!
  366.  
  367. After that, we have counter(image):
  368. this will pick up the property we’ve already defined in the .post selector.
  369. It will by default start with the number one (1).
  370.  
  371. The next property is there so that the counter knows that for each p.description,
  372. it needs to increment the image counter by 1 (counter-increment: image).
  373.  
  374. It’s not as complicated as it looks, and it can be quite useful.
  375.  
  376. The ::before and ::after pseudo-elements are often only used with the content property,
  377. to add small sentences or typographical elements,
  378. but here it’s shown how we can use it in a more powerful way in conjunction
  379. with the counter-reset and counter-increment properties.
  380.  
  381. Fun fact: the ::first-line and ::first-letter pseudo-elements will match the content added by the ::before pseudo-element, if present.
  382.  
  383. Notes on browser support
  384. These pseudo-elements are supported by IE8 (not IE7 or 6), if the single colon format is used (for example, :first-letter, not ::first-letter). All the other major browsers support these selectors
  385.  
  386. EXAMPLE SUT CETTE PAGE:
  387. COUNTER : Figure number + NUMBER
  388. @namespace url(http://www.w3.org/1999/xhtml);
  389.  
  390. @-moz-document url("http://coding.smashingmagazine.com/2009/08/17/taming-advanced-css-selectors/") {
  391.  
  392.  
  393. .post {
  394. counter-reset: image !important;
  395. }
  396.  
  397. p:before {
  398. content: "Figure number " counter(image) ": ";
  399. counter-increment: image !important;
  400. color: red !important;
  401. }
  402.  
  403. }
  404.  
  405. ============================
  406. =========== LISTE - COUNTER
  407. == http://www.quirksmode.org/css/counter.html
  408. == http://www.css3create.com/Hierarchiser-ses-titres-avec-CSS
  409. == http://www.w3schools.com/cssref/pr_gen_counter-increment.asp
  410. == http://webdesign.about.com/od/css2/a/aa032807.htm
  411. Réinitialiser votre compteur CSS
  412. body {counter-reset: section;}
  413. Dire au navigateur de commencer à compter.
  414. Vous utilisez la propriété counter-increment et de dire au navigateur le nom du compteur
  415. (défini dans la propriété counter-reset que «section») pour incrémenter.
  416. H3: before {counter-increment: section;}
  417. Alors que vous pouvez le placer sur l'élément h3 lui-même, qui va enlever tout le texte de l'élément.
  418. Ainsi, au lieu, vous devez utiliser l'un des pseudo-sélecteurs de placer le compteur soit avant ou après l'élément h3.
  419. Générer le contenu
  420. Tous ces compteurs sont bel et bien, mais si vous ne pouvez les voir sur la dernière page, il n'ya pas de point. Donc, pour les amener à afficher, on utilise la propriété du contenu. Combinez la propriété de contenu avec le nom du compteur et le navigateur comptent pour vous.
  421.  
  422. H3: before {content: "Partie" counter (section) ":";}
  423. CSS ajoute la phrase «Partie» puis le compteur nommé «article» et espace deux points ":"
  424. ===exemple :
  425. #tagList>li: before {
  426. counter-increment: section
  427. content: "Partie" counter (section) ":";;
  428. }
  429.  
  430. ============================
  431. ======== LISTE - COUNTER
  432. First make a variable (myIndex) and make it increase every time a p element occurs.
  433. Then insert the counter in front of all p elements:
  434. p {
  435. counter-increment: myIndex;
  436. }
  437. p:before {
  438. content:counter(myIndex);
  439. }
  440.  
  441. ============================
  442. =========== LISTE - COUNTER == Non-decimal counters
  443. list-style-type
  444. ==
  445. By default, counters use decimal numbers.
  446. However, you can use any value that's also a valid value for list-style-type
  447. (though the unordered ones don't make much sense).
  448. For instance, I count the <pre>s in this document by Greek letters.
  449.  
  450. ============================
  451. ======== LISTE - COUNTER == ESSAIS 1
  452. == http://www.flickr.com/groups_pending.gne?id=947672@N21&user=64057764@N05&doneaccept=1
  453. #InBox>tbody>tr{
  454. counter-increment: myIndex;
  455. }
  456. #InBox>tbody>tr:before{
  457. content:counter(myIndex);
  458. }
  459.  
  460. ============================
  461. ======== LISTE - COUNTER == ESSAIS 2
  462. == http://userstyles.org/styles/browse?search_terms=flickr
  463. /* ====== COUNTER RESULT ==== */
  464. .style-brief.no-rating
  465. {
  466. counter-increment: myIndex;
  467. }
  468.  
  469. ============================
  470. ======== LISTE - COUNTER - LIST-STYLE (decimal)
  471. ul.DataList li.Item {
  472. list-style: decimal outside none !important;
  473.  
  474. ============================
  475. ======== COUNTER
  476. ==http://www.tomsyweb.com/component/content/article/48-css/126-voici-comment-nettuts-vous-abrutit
  477. Avant d'utiliser un compteur CSS, il faut toujours l'initialiser.
  478. L'initialisation se fait au niveau d'un élément parent de l'élément auquel le compteur est appliqué.
  479.  
  480. ul {
  481. counter-reset:cards;
  482. }
  483.  
  484. li:after {
  485. counter-increment:cards;
  486. content:counter(cards);
  487. }
  488. ============================
  489. ======== LINE NUMBERING - counter-reset: line; + ::line-marker ???????????????
  490. == http//www.w3.org/TR/css3-content/#reserved :
  491. Another effect commonly requested by authors is that of line numbering. This module introduces the '::line-marker' pseudo-element that is attached to the front of every line box, which can be used for this purpose.
  492.  
  493. pre { counter-reset: line; }
  494. pre::line-marker { counter-increment: line; content: counter(line) "."; }
  495.  
  496. This pseudo-element can also be used to simulate the indentation style found in e-mail communication:
  497.  
  498. blockquote { margin: 0; padding: 0 0 0 2em; }
  499. blockquote > blockquote { margin-left: -1em; }
  500. blockquote::line-marker { width: 2em; text-align: left; content: ">"; }
  501.  
  502. Generated content based on the cite and datetime attributes can create introductions or citations on the fly as well.
  503.  
  504. ============================
  505. ======== Stash’s Pseudo Line Numbers
  506. == http://blogs.atlassian.com/2012/09/stashs-pseudo-line-numbers/
  507. == https://www.google.fr/search?q=each-line+pseudo-element&ie=utf-8&oe=utf-8&rls=org.mozilla:fr:official&client=firefox-a&gws_rd=cr&ei=Y68sUriUAauw7AaTsYHgCw&Complete=1&safe=off
  508.  
  509. Counters and Generated Content
  510.  
  511. CSS counters are not a new thing. They’ve been around since CSS 2.1 and is supported in all major browsers,
  512. including IE 8. They were originally there for resetting and controlling the numbering of ordered lists,
  513. but this time we’re using it for something different.
  514. Since line numbers are, in a sense, metadata when viewing source code (just as they are implied in an ordered list),
  515. the numbers themselves don’t really need to be in the markup for the page itself.
  516. So instead of using two empty span tags inside the line numbers div, and populating them using Javascript as the diffs are loaded over REST,
  517. I just added :before and :after pseudo-elements to the line numbers div on each line.
  518.  
  519. <div class="hunk" style="counter-reset: fromLines 5 toLines 5;">
  520.  
  521. ============================
  522. =========== CSS - COUNTER - EXAMPLE
  523. == http://red-team-design.developpez.com/tutoriels/css/style-listes-ordonnees/
  524.  
  525. /* (new5) TOP RATED - COUNTER NUMBER - === */
  526. #vTop {
  527. counter-reset: li !important; /* Initialise le compteur */
  528. list-style: none !important; /* Supprime la numérotation par défaut */
  529. font: 15px 'trebuchet MS', 'lucida sans' !important;
  530. padding: 0 !important;
  531. margin-bottom: 4em !important;
  532. text-shadow: 0 1px 0 rgba(255,255,255,.5) !important;
  533. }
  534.  
  535. #vTop tbody tr td+td table tbody tr td .video {
  536. position: relative !important;
  537. display: inline-block !important;
  538. padding: .4em .4em .4em 2em;
  539. margin: .5em 0;
  540. background: #ddd;
  541. color: white !important;
  542. text-decoration: none;
  543. border-radius: .3em;
  544. transition: all .3s ease-out;
  545. }
  546. #vTop tbody tr td+td table tbody tr td .video:hover{
  547. background: #eee;
  548. }
  549. #vTop tbody tr td+td table tbody tr td .video:hover:before{
  550. transform: rotate(360deg);
  551. }
  552. #vTop tbody tr td+td table tbody tr td .video:before{
  553. content: counter(li);
  554. counter-increment: li;
  555. position: absolute;
  556. left: 0.2em;
  557. top: 10%;
  558. margin-top: -1.3em;
  559. background: none repeat scroll 0 0 rgba(135, 207, 235, 0.3) !important;
  560. height: 2em;
  561. width: 2em;
  562. line-height: 2em;
  563. border: 1px solid #fff;
  564. text-align: center;
  565. font-weight: bold;
  566. border-radius: 13px;
  567. transition: all .3s ease-out;
  568. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement