-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstyle.css
198 lines (156 loc) · 4.49 KB
/
style.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
h1, .my-container span, .caption {
padding: 0 20px; /* Reduced padding for smaller screens */
}
.title, .caption, .report-issue, .classes-body span{
user-select: text !important;
}
.report-issue {
text-align: center;
margin-top: 0px;
margin-bottom: 10px;
}
.report-issue a {
color: #707070; /* Subtle grey color, adjust as needed */
text-decoration: none; /* Removes underline */
font-size: 0.9em; /* Smaller than normal text */
}
.report-issue a:hover, .report-issue a:focus {
text-decoration: underline; /* Adds underline on hover/focus for better accessibility */
color: #505050; /* Slightly darker on hover/focus */
}
.my-container span {
width: 100%;
display: block;
height: 40px;
}
.my-container table {
width: 80%; /* Use full width for smaller screens */
margin: 0 auto; /* Center the table */
}
/* Hide button by default and show on hover */
tr:hover .copy-btn {
visibility: visible;
}
/* Style for the table row container */
tr {
position: relative;
}
/* Style for the copy button */
.copy-btn {
position: absolute;
top: 45%;
left: 50%; /* Center horizontally relative to the parent element */
transform: translate(-50%, -50%); /* Adjust horizontally and vertically */
visibility: hidden;
cursor: pointer;
border: none;
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border-radius: 5px;
font-size: 0.8em;
}
/* Show the button on hover */
tr:hover .copy-btn {
visibility: visible;
}
/* Style for the text span */
span {
display: block;
}
footer {
margin-top: 40px;
border-top: 1px solid #e8e8e8;
border-color: #e0e5e6;
background: #f6f8f8;
padding: 20px 10px; /* Reduced padding */
}
footer .container{
display: flex;
justify-content: center;
align-content: center;
}
footer a {
text-decoration: none !important;
margin: 10px;
}
footer img {
height: 32px;
}
.logo {
height: 32px;
}
.header {
border-bottom: 1px solid #e8e8e8;
border-color: #e0e5e6;
background: #f6f8f8;
margin-bottom: 40px;
}
.classes span {
padding-left: 10px;
padding-top: 10px;
margin-bottom: 5px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.classes span::before {
content: '.';
}
.sp-logo {
display: block; /* Ensures the image is treated as a block-level element */
margin: 0 auto; /* Automatically calculates left and right margins to center the element */
height: 72px; /* Adjust the height as necessary */
padding-top: 20px;
}
.sp-logo, .footer-social-icon img {
height: 36px; /* Adjust size for smaller screens */
}
.title {
font-size: 32px; /* Adjust as necessary */
display: block; /* Change from inline to block for better control over positioning */
text-align: center; /* Center the text */
margin: 20px auto; /* Ensure the margin is auto to center block elements */
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
position: relative; /* Keep if you need to adjust the position relative to its normal position */
padding: 20px 0; /* Add some padding on top and bottom if needed */
}
.caption {
margin-left: 190px;
top: -23px;
position: relative;
margin: 30px 10px 20px 10px; /* Adjust for smaller screens */
text-align: center; /* Center-align caption text */
}
@media (max-width: 768px) {
.sp-logo {
margin-left: 20px; /* Adjust logo margin on smaller screens */
margin: 0 auto; /* Ensure the margin is auto to center block elements */
}
.title, .caption {
margin-left: 20px; /* Adjust left margin for title and caption */
text-align: center; /* Center-align text for better mobile layout */
}
.caption {
margin-top: 10px; /* Reduce space above the caption */
position: static; /* Reset position to default */
}
.footer-social-icon img {
height: 40px; /* Slightly larger icons for easier interaction */
}
.container {
padding: 0 15px; /* Add some padding on the sides */
}
}
@media (max-width: 480px) {
.header, .my-container, footer {
padding: 0 10px; /* Further reduce padding for very small screens */
}
.title {
font-size: 20px; /* Further reduce title size for very small screens */
}
.footer-social-icon img {
height: 36px; /* Adjust icon size for consistency */
}
.classes span {
font-size: 14px; /* Adjust text size for readability on small screens */
}
}