-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles2.css
124 lines (107 loc) · 2.21 KB
/
styles2.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
h1.medicine-center {
font-family: 'Open Sans', sans-serif;
color: var(--secondary-color);
font-size: 3.7rem;
font-weight: 400;
line-height: 1.2;
text-align: center;
margin-top: 50px;
margin-bottom: 5px;
}
.medicine-center span {
color: var(--primary-color);
}
.medicine-center-text {
text-align: center;
color: var(--text-color);
margin-top: 0;
letter-spacing: 5px;
}
/*Flipping card */
.rheading {
color: var(--primary-color);
margin-top: 50px;
font-size: 1.6rem;
letter-spacing: 3px;
}
.card-group:last-child{
margin-bottom: 50px;
}
.card-text {
font-size: 0.8rem;
font-style: italic;
}
.card {
margin: 1rem;
box-shadow: 0 2px 4px 0;
transition: 0.3s;
}
.card:hover {
box-shadow: 0 8px 16px 0;
}
.uppercontainer {
widows: 100%;
height: 10rem;
background-color: lightgray;
}
.flip-card {
background-color: transparent;
width: 300px;
height: 200px;
border: 1px solid #f1f1f1;
perspective: 1000px;
margin-top: 30px;
margin-left: 70px;
}
.flip-card:first-child{
margin-left: 150px;
}
/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
/* Position the front and back side */
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.flip-card-front {
background-color: var(--secondary-color);
color: #fff;
}
/* Style the back side */
.flip-card-back {
background-color: var(--primary-color);
color: #fff;
transform: rotateY(180deg);
}
.no-item{
margin-top: 80px;
margin-left: 490px;
color: var(--primary-color);
font-size: 2rem;
font-weight: 100;
}
button.showmore{
background-color: var(--secondary-color);
padding: 10px;
color: #fff;
border-radius: 5px;
border-style: none;
font-family: 'Open Sans', sans-serif;
font-size: 1.01rem;
cursor: pointer;
font-weight: 100;
}