Blame view

bower_components/prism/plugins/line-numbers/prism-line-numbers.css 742 Bytes
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  pre.line-numbers {
  	position: relative;
  	padding-left: 3.8em;
  	counter-reset: linenumber;
  }
  
  pre.line-numbers > code {
  	position: relative;
  }
  
  .line-numbers .line-numbers-rows {
  	position: absolute;
  	pointer-events: none;
  	top: 0;
  	font-size: 100%;
  	left: -3.8em;
  	width: 3em; /* works for line-numbers below 1000 lines */
  	letter-spacing: -1px;
  	border-right: 1px solid #999;
  
  	-webkit-user-select: none;
  	-moz-user-select: none;
  	-ms-user-select: none;
  	user-select: none;
  
  }
  
  	.line-numbers-rows > span {
  		pointer-events: none;
  		display: block;
  		counter-increment: linenumber;
  	}
  
  		.line-numbers-rows > span:before {
  			content: counter(linenumber);
  			color: #999;
  			display: block;
  			padding-right: 0.8em;
  			text-align: right;
  		}