Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _items-list.scss @ 31d7e532

History | View | Annotate | Download (2.9 kB)

1
/* List view for VMs, networks  */
2

    
3
.items-list {
4
	@include block-grid(2, 0, true);
5
	@media #{$small} {
6
		@include block-grid(4, 0, true);
7
	};
8
	background:url(../images/dashed_atom.png) repeat-y left center;
9
	&>li {
10
		text-align:center;
11
		padding:20px;
12
		position: relative;
13
		list-style:none;
14
		background:url(../images/dashed-bg-corner.png) no-repeat right bottom;
15
		height: 215px;
16
		.img {
17
			margin-bottom: 16px;
18
			position: relative;
19
			height:58px;
20
			display: inline-block;
21
		}
22
		.container {
23
			height:160px;
24
			margin: 16px 20px 20px;
25
			position: relative;
26
			line-height:120%;
27
			.tags {
28
				width: 100%;
29
				min-height: 12px;
30
				position: absolute;
31
				bottom: 6px;
32
			}
33
			.status {
34
				font-size: emCalc(12px);
35
				a {
36
					color: $secondary-color;
37
				}
38
				span {
39
					color: $secondary-color;
40
					display: block;
41
				}
42
			}
43
		}
44
		.more {
45
			$col-height: 200px;
46
			display: none;
47
			background: #fff;
48
			left:-10px;
49
			top: -10px;
50
			z-index:101;
51
			position: absolute;
52
			@include clearfix;
53
			@include box-shadow(-5px 5px 5px #ccc);
54
			.col {
55
				width: 50%;
56
				float: left;
57
				font-size: emCalc(14px);
58
				height: $col-height;
59
				ul {
60
					margin: 0;
61
					padding: 0;
62
					list-style: none outside none;
63
					li {
64
						padding: 0;
65
						text-align: left;
66
						a {
67
							color: $body-font-color;
68
							display: block;
69
							width:100%;
70
							padding: 5px 5px 5px 30px;
71
							&:hover {
72
								background-color: $secondary-color;
73
								color:  #fff;
74
							}
75
						}
76
					}
77
				}
78
				&.lt {
79
					ul {
80
						padding-top:10px;
81
					}
82
				}
83
				&.rt {
84
					ul {
85
						li {
86
							height: $col-height/2;
87
							a {
88
								height: 100%;
89
								padding:0 0 0 30px;
90
								line-height: $col-height/2;
91
							}
92
						}
93
					}
94
				}
95
			}
96
			.vm-name {
97
				background:url(../images/dashed_atom-x.png) repeat-x center top;
98
				padding: 10px;
99
				font-size: emCalc(10px);
100
			}
101
		}
102
		h4 {
103
			font-size: emCalc(12px);
104
			color:$primary-color;
105
			overflow: hidden;
106
			margin-bottom: 4px;
107
			height: 30px;
108
			font-weight: normal;
109
		}
110
		&[data-status="add-new"] {
111
			background-color: $secondary-color;
112
			@include transition(background-color, 300ms, linear);
113
			.container {
114
				.img-wrap {
115
					.img {
116
						a {
117
							span:first-child {
118
								color: white;
119
							}
120
							.symbol {
121
								background-image: none;
122
								color: $secondary-color;
123
								font-size: 30px;
124
								text-indent: 0;
125
							}
126
						}
127
					}
128
				}
129
				h4 a{
130
					color: white;
131
				}
132
			}
133
			&:hover {
134
				background-color: white;
135
				@include transition(background-color, 300ms, linear);
136
				.container {
137
					.img-wrap {
138
						.img {
139
							a {
140
								span:first-child {
141
									color: $secondary-color;
142
									@include transition(color, 300ms, linear);
143
								}
144
								.symbol {
145
									color: white;
146
								}
147
							}
148
						}
149
					}
150
					h4 a{
151
						color: $secondary-color;
152
					}
153
				}
154
			}
155
		}
156
	}
157
	&.list-view {
158
		li {
159
			width:100%;
160
		}
161
	}
162
}