forked from enterprisemediawiki/MasonryMainPage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Masonry.css
82 lines (70 loc) · 1.75 KB
/
Masonry.css
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**
* This CSS file supplements MediaWiki:Common.css
* Currently, this file only has the Masonry-specific CSS
* This controls how the blocks behave
* It does not include CSS for the block colors, padding, margin, etc.
* That CSS should eventually be moved in here
*/
/**
* This first section is a web kit feature used to round the corners,
* but it also has a slight effect on the vector skin tabs (Read, Edit, etc)
* by making part of the division lines not appear.
{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*/
body { font-family: sans-serif; }
.masonry {
max-width: 2800px;
}
.masonry .item {
float: left;
}
/* item is invisible, but used for layout */
.item,
.item-content {
/* background: #eee;*/
}
.item {width: 300px;
border: none;
background: transparent;
margin: 0px 10px 10px 0px;
}
.item.w2 { width: 610px; }
/* item-content is visible, and transitions size */
.item-content {
/* Commented out height so blocks can be different sized heights */
/* height: 200px;*/
width: 100%;
padding: 0px 0px 0px 0px;
/* background: #eee;*/
border: 0px solid #333;
border-color: hsla(0, 0%, 0%, 0.5);
/* Commented out rounded corners
border-radius: 10px;
-webkit-transition: width 0.4s, height 0.4s;
-moz-transition: width 0.4s, height 0.4s;
-o-transition: width 0.4s, height 0.4s;
transition: width 0.4s, height 0.4s;
*/
}
/* COMMENTED OUT HOVER COLOR CHANGING
.item:hover .item-content {
border-color: white;
background: #A2C;
cursor: pointer;
}*/
/* COMMENTED OUT RESIZING FUNCTIONALITY
.item.is-expanded,
.item.is-expanded .item-content {
width: 620px;
}
.item.is-expanded {
z-index: 2;
}
.item.is-expanded .item-content {
background: #F90;
}
*/