Sha256: ed83ecca55b15150c88fc25f32238fc1ce1ee9d93fec70170d92cdb4f5d7cc7f

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

@if $captions {
	[class^="caption-"] {
		position: relative;
		display: inline-block;
		width: auto;
		overflow: hidden;
		line-height: 0;

		&:after {
			@extend %caption !optional;
			display: inline-block;
			content: attr(data-content);
			position: absolute;
			line-height: rhythm();
		}

		&[class*="top"]:after 		{ top:0; }
		&[class*="bottom"]:after 	{ bottom:0; }
		&[class*="left"]:after 		{ left:0; }
		&[class*="right"]:after 	{ right:0; }

		&[class$="top"]:after,
		&[class$="bottom"]:after 	{ left: 0; right: 0; }

		// Animations
		// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
		&[class*="fade"],
		&[class*="float"] {

			&:after {
				@include transition();
				opacity: 0;
				visibility: hidden;
			}

			&:hover:after {
				opacity: 1;
				visibility: visible;
			}
		}

		// Float Animation
		&[class*="float"][class*="top"] {
			&:after { top: -10px; }
			&:hover:after { top: 0; }
		}

		&[class*="float"][class*="bottom"] {
			&:after { bottom: -10px; }
			&:hover:after { bottom: 0; }
		}

	}
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rapido-css-0.0.1 stylesheets/components/_captions.scss