-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
104 lines (89 loc) · 4.03 KB
/
styles.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
/* 2024.02.17 */
/* Body styling for center alignment, width constraints, and font family */
body {
text-align: center; /* Center-align text */
max-width: 700px; /* Set maximum width */
min-width: 600px; /* Set minimum width */
margin: auto; /* External margin for center alignment */
font-family: Arial, sans-serif; /* Set font family */
}
/* Styling for h1 element with top margin */
h1 {
margin-top: 20px; /* Add top margin to h1 element */
}
/* Styling for date-container element with right alignment */
.date-container {
margin-top: 20px; /* Add top margin */
text-align: right; /* Align text to the right */
width: 94.5%; /* Set width */
font-size: smaller; /* Set smaller font size */
}
/* Flex container for links with space-around justification */
.links-container {
margin-top: 5px; /* Add margin to separate from h1 */
display: flex; /* Use flexbox */
flex-wrap: wrap; /* Allow wrapping */
justify-content: space-around; /* Arrange items with space around */
}
/* Styling for each link item with border, width, margin, and background color */
.link-item {
border-collapse: collapse; /* Collapse table borders */
border-radius: 5px; /* Add border radius */
width: 90%; /* Set width */
margin: 0; /* Remove default margin */
margin-bottom: 5px; /* Add bottom margin */
background-color: ghostwhite; /* Set background color */
}
/* Set width for tables */
table {
width: 100%;
}
/* Styling for table cells with border, margin, padding, width, and hover effect */
td {
border: 1px solid darkgray; /* Add border to cells */
margin: 0; /* Remove default margin */
padding: 10px; /* Add padding to cells */
width: 100%; /* Set width */
transition: transform 0.3s ease; /* Smooth hover effect */
}
/* Flex container for the first row with bold text */
.row1 {
display: flex; /* Use flexbox */
font-weight: bold; /* Set text to bold */
}
/* Styling for category cell with maximum width and rounded border */
.category-cell {
max-width: 20%; /* Set maximum width */
border-top-left-radius: 5px; /* Rounded top-left border */
}
/* Styling for title cell with flex-grow and left text alignment */
.title-cell {
flex-grow: 1; /* Allow title cell to grow */
text-align: left; /* Left-align text in title cell */
}
/* Styling for date cell with maximum width and rounded border */
.date-cell {
max-width: 20%; /* Set maximum width */
border-top-right-radius: 5px; /* Rounded top-right border */
}
.row2 {
display: flex; /* Display second row as a flex container */
}
/* Styling for comment cell with left text alignment, rounded borders, and smaller font size */
.comment-cell {
flex-grow: 1; /* Allow comment cell to grow */
border-bottom-left-radius: 5px; /* Rounded bottom-left border */
border-bottom-right-radius: 5px; /* Rounded bottom-right border */
text-align: left; /* Left-align text in comment cell */
font-size: smaller; /* Set smaller font size */
}
/* Hover effect for link items with scale transformation and background color change */
.link-item:hover {
transform: scale(1.05); /* Enlarge on hover */
background-color: lavender; /* Change background color on hover */
}
/* Styling for anchor (link) with no text decoration and default color */
a {
text-decoration: none; /* Remove underline from links */
color: #333; /* Set default link color */
}