Skip to content

Commit

Permalink
Merge branch 'main' of github.com:kevquirk/simple.css
Browse files Browse the repository at this point in the history
  • Loading branch information
kevquirk committed May 17, 2023
2 parents 4286452 + 92c5a05 commit 0fe599c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -22,7 +22,7 @@ <h1>Simple.css Test Page</h1>
<p>This is a test page filled with common HTML elements.</p>
<nav>
<ul>
<li><a href="#text">Text</a></li>
<li><a class="current" href="#text">Text</a></li>
<li><a href="#embedded">Embedded content</a></li>
<li><a href="#forms">Form elements</a></li>
<li><a href="https://simplecss.org/">Project homepage</a></li>
Expand Down
26 changes: 19 additions & 7 deletions simple.css
Expand Up @@ -191,6 +191,9 @@ label[type="button"] {
color: var(--bg);
padding: 0.7rem 0.9rem;
margin: 0.5rem 0;

/* Ensure buttons use correct font */
font-family: inherit;
}

button[disabled],
Expand Down Expand Up @@ -282,7 +285,8 @@ header > nav a:visited {
text-decoration: none;
}

header > nav a:hover {
header > nav a:hover,
header > nav a.current {
border-color: var(--accent);
color: var(--accent);
cursor: pointer;
Expand Down Expand Up @@ -310,16 +314,19 @@ aside {
font-size: 1rem;
width: 30%;
padding: 0 15px;
margin-left: 15px;
margin-inline-start: 15px;
float: right;
}
*[dir="rtl"] aside {
float: left;
}

/* Make aside full-width on mobile */
@media only screen and (max-width: 720px) {
aside {
width: 100%;
float: none;
margin-left: 0;
margin-inline-start: 0;
}
}

Expand Down Expand Up @@ -387,7 +394,7 @@ table {
td,
th {
border: 1px solid var(--border);
text-align: left;
text-align: start;
padding: 0.5rem;
}

Expand Down Expand Up @@ -436,7 +443,10 @@ select:not([multiple]) {
background-position: calc(100% - 15px), calc(100% - 10px);
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
padding-right: 25px;
padding-inline-end: 25px;
}
*[dir="rtl"] select:not([multiple]) {
background-position: 10px, 15px;
}

/* checkbox and radio button style */
Expand Down Expand Up @@ -545,9 +555,11 @@ figcaption {
}

blockquote {
margin: 2rem 0 2rem 2rem;
margin-inline-start: 2rem;
margin-inline-end: 0;
margin-block: 2rem;
padding: 0.4rem 0.8rem;
border-left: 0.35rem solid var(--accent);
border-inline-start: 0.35rem solid var(--accent);
color: var(--text-light);
font-style: italic;
}
Expand Down
2 changes: 1 addition & 1 deletion simple.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0fe599c

Please sign in to comment.