-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
117 lines (99 loc) · 2.3 KB
/
Copy pathstyles.css
File metadata and controls
117 lines (99 loc) · 2.3 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
font-family: 'Press Start 2P', cursive;
background-color: #000;
color: #0ff;
text-align: center;
min-height: 100vh;
padding: 1.5rem 0;
display: flex;
flex-direction: column;
justify-content: center;
}
a {
text-decoration: none;
}
.container {
margin: 0 auto;
}
h1 {
font-size: 2.25rem;
margin-bottom: 1.5rem;
}
#outer-heading {
background-color: #ff0; /* Yellow background */
padding: 1.25rem; /* Larger padding to create a border effect */
border-radius: 0.5rem; /* Slightly larger border radius */
display: inline-block; /* To apply padding and background color only around the text */
}
#inner-heading {
background-color: #f00; /* Red background */
color: #fff; /* White text */
padding: 1rem; /* Padding around the text */
border-radius: 0.375rem; /* Rounded corners */
display: inline-block; /* To apply padding and background color only around the text */
margin: 0; /* Remove default margin */
}
p {
margin-bottom: 1.5rem;
}
.grid {
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));
gap: 1rem;
}
@media (min-width: 640px) {
.grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (min-width: 768px) {
.grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.card {
background-color: #222;
font-size: 0.75rem;
border-radius: 0.375rem;
overflow: hidden;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05);
transition: all 0.2s;
text-decoration: none;
}
.card .image-container {
height: 200px;
overflow: hidden;
}
.card:hover {
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
transform: scale(1.05);
}
.card img {
width: 100%;
object-fit: cover;
}
.card div {
padding: 1.5rem;
}
.card h2 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.card p {
color: #4a5568;
}
.card span {
background-color: #f00;
display: inline-block;
padding: 0.5em 2em;
font-size: 0.875rem;
font-weight: 700;
color: #fff;
border-radius: 9999px; /* equivalent to Tailwind's rounded-full */
transition: background-color 0.2s; /* equivalent to Tailwind's transition-colors duration-200 */
}
.card span:hover {
background-color: #ff0; /* equivalent to Tailwind's bg-blue-600 */
}