You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-3/quote-generator/style.css
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,12 @@ body {
31
31
max-width:700px;
32
32
text-align: center;
33
33
position: relative;
34
-
/* Simple crisp shadow or none based on flat design of example, keeping slight shadow for visibility */
34
+
/* Applies a simple crisp shadow for visibility, maintaining the flat design aesthetic */
35
35
box-shadow:04px6pxrgba(0,0,0,0.1);
36
36
}
37
37
38
38
h1 {
39
-
display: none; /* The example image doesn't show a visible title inside the card */
39
+
display: none; /* Hides the title as it is not visible in the reference design */
40
40
}
41
41
42
42
#quote {
@@ -45,39 +45,39 @@ h1 {
45
45
color:var(--text-color);
46
46
margin-bottom:1.5rem;
47
47
position: relative;
48
-
padding-left:3rem; /* Space for the quote icon */
48
+
padding-left:3rem; /* Reserves space for the decorative quote icon */
49
49
text-align: left;
50
50
}
51
51
52
52
#quote::before {
53
-
content:'“'; /* Large quote mark using curved quotes */
53
+
content:'“'; /* Renders a large curved quote mark */
54
54
font-size:6rem;
55
55
color:var(--primary-color);
56
56
position: absolute;
57
57
top:-1.5rem;
58
58
left:-1rem;
59
59
line-height:1;
60
-
font-family: sans-serif; /* Quote marks often look better in sans-serif or specific fonts */
61
-
opacity:1; /* Solid colour in example */
60
+
font-family: sans-serif; /* Uses sans-serif for the quote mark for better visual appeal */
61
+
opacity:1; /* Maintains solid opacity matching the design */
62
62
}
63
63
64
64
#author {
65
65
font-size:1.1rem;
66
66
color:var(--text-color);
67
67
margin-bottom:2.5rem;
68
68
text-align: right;
69
-
font-style: italic; /* Authors are often italicised in this style */
69
+
font-style: italic; /* Applies italics to distinguish the author name */
70
70
}
71
71
72
-
/* Add dash before author if not present in JS, but here we style assuming content */
72
+
/* Appends a dash before the author name if not dynamically added by JS */
73
73
#author::before {
74
74
content:'- ';
75
75
}
76
76
77
77
.controls {
78
78
display: flex;
79
79
flex-direction: column;
80
-
align-items: flex-end; /* Button aligned to right in some designs, or center. Example shows right or center. Let's align right to match typical 'next' flows or keep center if safer. Example looks right-aligned for button. */
80
+
align-items: flex-end; /* Aligns controls to the right to match typical progression flows */
81
81
}
82
82
83
83
button {
@@ -96,12 +96,12 @@ button:hover {
96
96
opacity:0.9;
97
97
}
98
98
99
-
/* Auto-play Switch - adjusting to fit the new theme */
99
+
/* Auto-play Switch - adjusts layout to fit the theme */
100
100
.auto-play-container {
101
101
display: flex;
102
102
align-items: center;
103
103
gap:1rem;
104
-
margin-top:1rem; /* Separate from main button */
104
+
margin-top:1rem; /* Separates the switch from the main action button */
105
105
align-self: flex-end;
106
106
}
107
107
@@ -132,9 +132,9 @@ button:hover {
132
132
left:0;
133
133
right:0;
134
134
bottom:0;
135
-
background-color:#e4e4e4; /* Light grey for off */
135
+
background-color:#e4e4e4; /* Sets light grey background for the 'off' state */
136
136
transition:.4s;
137
-
border-radius:0; /* Square/Rectangular look or keep rounded? Let's keep rounded for standard UI toggle */
137
+
border-radius:0; /* Maintains square/rectangular shape for a standard toggle look */
0 commit comments