Skip to content

Instantly share code, notes, and snippets.

@atomotic
Created December 27, 2024 15:45
Show Gist options
  • Save atomotic/7add991dae10ed061e400c2a17145cd7 to your computer and use it in GitHub Desktop.
Save atomotic/7add991dae10ed061e400c2a17145cd7 to your computer and use it in GitHub Desktop.
body {
max-width: 48em;
margin: auto;
line-height: 1.5;
padding: 0.8em;
word-wrap: break-word;
display: flex;
flex-direction: column;
background: #f5f5f7;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 13px;
-webkit-font-smoothing: antialiased;
}
video {
aspect-ratio: 16 / 9;
}
a {
color: #0066cc;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
pre {
overflow-x: scroll;
padding: 0.8rem 1rem;
border-radius: 0.5rem;
background-color: #ffffff;
font-size: 90%;
margin: 0.5rem 0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(0, 0, 0, 0.1);
}
code {
background-color: #f5f5f7;
padding: 0.2em 0.4em;
border-radius: 4px;
font-size: 90%;
font-family: SF Mono, Monaco, Menlo, Courier, monospace;
}
img {
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
textarea {
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.2);
padding: 0.5rem 0.9rem;
resize: none;
max-width: 95%;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
textarea:focus {
outline: none;
border-color: #0066cc;
box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}
select {
appearance: none;
background-color: #ffffff;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.2);
padding: 0.4em 0.9em;
margin-bottom: 0.5em;
width: 97%;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5h6L6 9z' fill='%23666'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.7em center;
background-size: 0.8em;
}
input[type="text"],
input[type="number"],
input[type="password"] {
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.2);
padding: 0.4rem 0.9rem;
width: 96%;
margin: 0.3rem 0;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
outline: none;
border-color: #0066cc;
box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}
input[type="file"] {
background: #ffffff;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.2);
width: 98%;
margin: 0.3rem 0;
padding: 0.4rem;
}
input[type="file"]::file-selector-button {
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
padding: 0.3rem 0.8rem;
background: linear-gradient(to bottom, #ffffff, #f7f7f7);
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
font-size: 13px;
color: #333;
}
input[type="file"]::file-selector-button:hover {
background: linear-gradient(to bottom, #f7f7f7, #f1f1f1);
}
.snac-post {
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
background: #ffffff;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.snac-avatar {
float: left;
height: 3em;
aspect-ratio: 1 / 1;
margin-right: 0.8rem;
border-radius: 50%;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.snac-btn-like,
.snac-btn-boost,
.snac-btn-unfollow,
.snac-btn-follow,
.snac-btn-mute,
.snac-btn-delete,
.snac-btn-hide,
.snac-btn-limit,
.snac-btn-pin,
.snac-btn-unpin {
padding: 0.4rem 0.8rem;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.2);
background: linear-gradient(to bottom, #ffffff, #f7f7f7);
text-transform: capitalize;
font-weight: 500;
font-size: 13px;
color: #333;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.snac-btn-like:hover,
.snac-btn-boost:hover,
.snac-btn-unfollow:hover,
.snac-btn-follow:hover,
.snac-btn-mute:hover,
.snac-btn-delete:hover,
.snac-btn-hide:hover,
.snac-btn-limit:hover,
.snac-btn-pin:hover,
.snac-btn-unpin:hover {
background: linear-gradient(to bottom, #f7f7f7, #f1f1f1);
border-color: rgba(0, 0, 0, 0.3);
}
.snac-btn-like:active,
.snac-btn-boost:active,
.snac-btn-unfollow:active,
.snac-btn-follow:active,
.snac-btn-mute:active,
.snac-btn-delete:active,
.snac-btn-hide:active,
.snac-btn-limit:active,
.snac-btn-pin:active,
.snac-btn-unpin:active {
background: linear-gradient(to bottom, #f1f1f1, #e8e8e8);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.snac-controls .button,
.snac-top-controls .button {
padding: 0.5rem 1rem;
border: 1px solid #0066cc;
border-radius: 6px;
background: linear-gradient(to bottom, #0077ed, #0066cc);
color: #ffffff;
font-weight: 500;
text-transform: capitalize;
box-shadow: 0 1px 2px rgba(0, 102, 204, 0.2);
}
.snac-controls .button:hover,
.snac-top-controls .button:hover {
background: linear-gradient(to bottom, #0066cc, #0055bb);
}
.snac-controls .button:active,
.snac-top-controls .button:active {
background: #0055bb;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
/* Keep other existing styles but update colors and shadows to match macOS */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment