aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/resources/scss/components/_svgIcon.scss
blob: fc02f81fd4f50264c05d505d1781334b6499c4b1 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
@mixin overrideBootstrapClose(){
	opacity: 1;
	float: none;
	&:hover {
		opacity: 1;
	}
}

.svg-icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	&.bottom {
		flex-direction: column;
		.svg-icon-label {
			margin-bottom: 5px;
		}
	}
	&.right {
		float: none;
		.svg-icon-label {
			margin-left: 5px;
		}
	}
	&.top {
		flex-direction: column-reverse;;
		.svg-icon-label {
			margin-top: 5px;
		}
	}
	&.left {
		flex-direction: row-reverse;;
		.svg-icon-label {
			margin-right: 5px;
		}
	}
	// bootstrap override
	&.close {
		@include overrideBootstrapClose();
	}
	.close {
	@include overrideBootstrapClose();
	}
	.svg-icon {
		width: 20px;
		height: 20px;
	}
	.svg-icon-label {
		@extend .body-1;
	}
}