forked from tiptoppress/category-posts-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcat-posts.css
More file actions
100 lines (100 loc) · 2.18 KB
/
cat-posts.css
File metadata and controls
100 lines (100 loc) · 2.18 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
Default CSS Styles for the Category Posts Widget plugin
Version: 4.1.5
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General
2.0 Thumbnail hover effects
--------------------------------------------------------------*/
/*--------------------------------------------------------------
1.0 General
--------------------------------------------------------------*/
.cat-post-title {
font-size: 15px;
font-size: 0.9375rem;
}
.cat-post-current .cat-post-title {
font-weight: bold;
text-transform: uppercase;
}
.cat-post-date,
.cat-post-comment-num {
font-size: 12px;
font-size: 0.75rem;
line-height: 18px;
line-height: 1.125rem;
margin-bottom: 0;
}
.cat-post-date {
font-style: italic;
}
.cat-post-author {
margin-bottom: 0;
}
.cat-post-thumbnail img {
float: left;
margin: 5px 10px 5px 0;
}
.cat-post-item {
border-bottom: 1px solid #ccc;
list-style: none;
list-style-type: none;
margin: 3px 0;
padding: 3px 0;
}
.cat-post-item:before,
.cat-post-item:after {
content: "";
display: table;
clear: both;
}
.cat-post-item:last-child {
border-bottom: none;
}
/*--------------------------------------------------------------
2.0 Thumbnail hover effects
--------------------------------------------------------------*/
/* For White, Dark, Scale */
li a.cat-post-white,
li a.cat-post-dark,
li a.cat-post-scale {
display: inline-block;
background-color: black;
float: left;
margin: 5px 10px 5px 0;
}
li a.cat-post-white img,
li a.cat-post-dark img,
li a.cat-post-scale img {
margin: 0;
padding-bottom: 0 !important;
}
li a.cat-post-white img:hover,
li a.cat-post-dark img:hover {
opacity: 0.8;
}
/* Only for White */
li a.cat-post-white {
background-color: white;
}
/* Only for Dark */
li a.cat-post-dark {
background-color: black;
}
/* Only for Scale */
li a.cat-post-scale {
overflow: hidden;
}
li a.cat-post-scale img {
-webkit-transition: all 400ms;
-moz-transition: all 400ms;
-o-transition: all 400ms;
transition: all 400ms;
}
li a.cat-post-scale img:hover {
-webkit-transform: scale(1.1, 1.1);
-ms-transform: scale(1.1, 1.1);
transform: scale(1.1, 1.1);
}