forked from GCA-Classroom/WD-LL5-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
70 lines (63 loc) · 1.75 KB
/
style.css
File metadata and controls
70 lines (63 loc) · 1.75 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
/* 🌿 Tile by Nehir – Starter CSS
This stylesheet adds simple styling to support your layout.
You'll enhance the layout further using Bootstrap during the LiveLab.
*/
/* Set a soft textured background for the whole page */
body {
background-image: url('assets/offwhite-background.jpg');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
font-family: sans-serif;
padding: 16px; /* Adds space around edges on small screens */
}
/* Header polish */
h1 {
padding: 8px;
border-radius: 4px;
}
/* Limit image dimensions so tiles don’t overflow the layout */
img {
max-height: 250px;
max-width: 250px;
}
/* Optional decorative border for each tile */
.border-tile {
border: 20px solid transparent;
border-image: url('assets/wood.jpg') 30 round;
padding: 5px;
background-color: white;
transition: transform 0.2s, box-shadow 0.2s;
}
/* Optional caption style if you add labels under your tiles */
.tile-caption {
text-align: center;
margin-top: 8px;
font-size: 14px;
color: #444;
}
/* 🎨 Extra polish: subtle card shadow and image zoom on hover */
.card-tile {
background: #fffdfa;
border: none;
border-radius: 16px;
box-shadow: 0 2px 8px #0001;
transition: transform 0.2s, box-shadow 0.2s;
height: 100%;
}
.card-tile:hover {
transform: translateY(-4px) scale(1.03);
box-shadow: 0 4px 16px #bfae9e55;
}
.card-tile .border-tile {
transition: transform 0.2s;
}
.card-tile:hover .border-tile {
transform: scale(1.04);
}
/* 💡 Optional Enhancements:
- Try adding a hover effect with transform and box-shadow
- Use border-radius for rounded image corners
- Combine with Bootstrap utilities like p-3, mb-4, text-center
- Ask AI: “Add a subtle zoom effect on image hover”
*/