Sha256: 39d49d302f40c5c8245599e95efbf08aea9aa9f4471cc5cbebcfd5c13e966046

Contents?: true

Size: 1.14 KB

Versions: 13

Compression:

Stored size: 1.14 KB

Contents

pre[data-line] {
	position: relative;
	padding: 1em 0 1em 3em;
}

.line-highlight {
	position: absolute;
	left: 0;
	right: 0;
	padding: inherit 0;
	margin-top: 1em; /* Same as .prism’s padding-top */

	background: hsla(24, 20%, 50%,.08);
	background: -moz-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
	background: -webkit-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
	background: -o-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
	background: linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
	
	pointer-events: none;
	
	line-height: inherit;
	white-space: pre;
}

	.line-highlight:before,
	.line-highlight[data-end]:after {
		content: attr(data-start);
		position: absolute;
		top: .4em;
		left: .6em;
		min-width: 1em;
		padding: 0 .5em;
		background-color: hsla(24, 20%, 50%,.4);
		color: hsl(24, 20%, 95%);
		font: bold 65%/1.5 sans-serif;
		text-align: center;
		vertical-align: .3em;
		border-radius: 999px;
		text-shadow: none;
		box-shadow: 0 1px white;
	}
	
	.line-highlight[data-end]:after {
		content: attr(data-end);
		top: auto;
		bottom: .4em;
	}

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
polymer-elements-rails-1.0.1 app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css
polymer-elements-rails-1.0.0 app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css
polymer-elements-rails-1.0.0.pre.rc.1 app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css
polymer-iron-rails-1.0.0.pre.rc.3 app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css
polymer-iron-rails-1.0.0.pre.rc.2 app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css
polymer-iron-rails-1.0.0.pre.rc.1 app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css
hyhyhy-1.0.0 lib/hyhyhy/structure/_includes/prism/plugins/line-highlight/prism-line-highlight.css
hyhyhy-0.0.9 lib/hyhyhy/structure/_includes/prism/plugins/line-highlight/prism-line-highlight.css
hyhyhy-0.0.8 lib/hyhyhy/structure/_includes/prism/plugins/line-highlight/prism-line-highlight.css
hyhyhy-0.0.7 lib/hyhyhy/structure/_includes/prism/plugins/line-highlight/prism-line-highlight.css
hyhyhy-0.0.6 lib/hyhyhy/structure/_includes/prism/plugins/line-highlight/prism-line-highlight.css
hyhyhy-0.0.5 lib/hyhyhy/structure/_includes/prism/plugins/line-highlight/prism-line-highlight.css
hyhyhy-0.0.4 lib/hyhyhy/structure/_includes/prism/plugins/line-highlight/prism-line-highlight.css