Skip to content

Commit

Permalink
improve css
Browse files Browse the repository at this point in the history
  • Loading branch information
dommmel committed Apr 30, 2024
1 parent 315e4c9 commit 4e82e72
Showing 1 changed file with 88 additions and 15 deletions.
103 changes: 88 additions & 15 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,96 @@
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
/* Base settings to normalize styling across browsers */
html, body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: #333;
background: #f4f4f4;
line-height: 1.6;
font-size: 16px;
}

input, button {
margin: 10px;
padding: 10px;
font-size: 16px;
/* Container for padding and max-width */
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style headings */
h1, h2 {
color: #0056b3; /* A nice, dark blue for headings */
}

.widget {
display: flex;
align-items: center;
border: 1px solid #ccc;
h1 {
font-size: 2.5em;
margin-bottom: 0.5em;
line-height: 1.2;
}

h2 {
margin-top: 2em;
}
font-size: 1.8em;
margin-top: 1em;
margin-bottom: 0.5em;
}

/* Links */
a {
color: #007bff;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

/* Lists */
ul, ol {
padding-left: 20px;
}

li {
margin-bottom: 10px;
}

input[type="file"] {
border: 1px dashed #0056b3;
background: #e9ecef;
display: block;
padding: 20px;
width: calc(100% - 42px); /* Adjust width to account for padding and border */
margin: 10px auto;
text-align: center;
cursor: pointer;
color: #0056b3;
transition: background-color 0.3s ease;
}

input[type="file"]:hover, input[type="file"]:focus {
background-color: #d0e2f7;
outline: none; /* Removes the default focus outline */
}

/* Responsive design */
@media (max-width: 768px) {
.container {
width: 95%;
padding: 10px;
}

h1 {
font-size: 2em;
}

h2 {
font-size: 1.5em;
}
}

/* Further enhancement for mobile */
@media (max-width: 480px) {
h1, h2 {
font-size: 1.2em;
}
}

0 comments on commit 4e82e72

Please sign in to comment.