-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmallBox.css
More file actions
75 lines (68 loc) · 2.82 KB
/
Copy pathSmallBox.css
File metadata and controls
75 lines (68 loc) · 2.82 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
.small-box {
width: 200px; /* Sets the width of the content area */
height: 100px; /* Sets the height of the content area */
padding: 10px; /* Adds space between content and border */
border: 1px solid #ccc; /* Adds a border around the content and padding */
margin: 20px; /* Adds space outside the border, separating it from other elements */
background-color: #37eb2d; /* Adds a background color */
box-sizing: border-box;
border-radius: 8px; /* Ensures padding and border are included in the width/height calculation */
cursor: pointer;
}
.small-box:hover{
background-image: linear-gradient(135deg,#00a2ff,#7b00ff);
transition:opacity .7s ease-in-out, transform .7s ease-in-out;
transition: .7s ease-out;
transform: translateY(-6px);
box-shadow: 0 8px 20px rgba(0,0,0,0.18);
cursor: pointer;
}
.styled-box:hover {
background-color: #7f9d77;
}
.small-box h3 {
margin-top: 0; /* Removes default top margin for the heading */
}
.box-link {
text-decoration: none; /* Removes the underline from the text */
color: inherit; /* Keeps the text color normal/inherited */
display: block; /* Ensures the link behaves as a block element */
width: fit-content; /* Prevents the link/box from spanning the full width of the screen by default */
}
.box-link:hover .info-box {
background-color: #eef; /* A lighter blue hover color */
border-color: #0056b3;
}
.menu {
position:absolute;
right:0;
margin-top:0.5rem;
width: 200px; /* Sets the width of the content area */
height: 168px;
background:var(--card);
color:#111;
border-radius:8px;
box-shadow:0 8px 30px rgba(2,6,23,0.12);
overflow:hidden;
transform-origin:top right;
transition:opacity .12s ease, transform .12s ease;
opacity:0;pointer-events:none;transform:translateY(-6px) scale(.98);
}
.cardstyle
{
width: 300px; /* Sets the width of the content area */
height: 200px; /* Sets the height of the content area */
padding: 15px; /* Adds space between content and border */
border: 1px solid #ccc; /* Adds a border around the content and padding */
margin: 25px; /* Adds space outside the border, separating it from other elements */
background-color: #f0f0f0; /* Adds a background color */
box-sizing: border-box;
border-radius: 10px; /* Ensures padding and border are included in the width/height calculation */
cursor: pointer;
}
.spaced-text {
/* A unitless value (like 1.8) is often recommended for better accessibility */
line-height: 1.8;
/* Alternatively, you can use specific units like pixels: */
/* line-height: 25px; */
}