Skip to content

Commit

Permalink
Update sitemap.xml and refactor styles.css: remove outdated URLs, enh…
Browse files Browse the repository at this point in the history
…ance CSS variables, and improve styling consistency
  • Loading branch information
fynks committed Dec 11, 2024
1 parent 704f6a8 commit aeb977e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 99 deletions.
8 changes: 0 additions & 8 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,5 @@
<loc>https://awesome-android-root.netlify.app/</loc>
<lastmod>2024-12-06T07:12:00+00:00</lastmod>
</url>
<url>
<loc>https://awesome-android-root.netlify.app/guide</loc>
<lastmod>2024-12-06T07:12:00+00:00</lastmod>
</url>
<url>
<loc>https://awesome-android-root.netlify.app/contributing/</loc>
<lastmod>2024-12-06T07:12:00+00:00</lastmod>
</url>

</urlset>
140 changes: 49 additions & 91 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
:root {
--primary: ;
--text: #24292e;
--primary: #121314;
--text: #2c3338;
--text-light: #57606a;
--bg: #ffffff;
--secondary-bg: #f6f8fa;
--bg-alt: #f6f8fa;
--border: #e1e4e8;
--radius: 6px
--radius: 8px;
--shadow: 0 1px 3px rgba(0,0,0,0.12);
}

body {
Expand All @@ -14,139 +16,95 @@ body {
margin: 0 auto;
padding: 2rem;
color: var(--text);
background: var(--bg)
background: var(--bg);
}

h1,
h2,
h3,
h4 {
h1, h2, h3, h4 {
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 600;
line-height: 1.25;
color: var(--primary)
}

h1 {
font-size: 2rem
}

h2 {
font-size: 1.5rem;
border-bottom: 1px solid var(--border);
padding-bottom: .3em
}

h3 {
font-size: 1.25rem
color: var(--text);
}

h4 {
font-size: 1rem
h1 { font-size: 2.5rem; color: var(--primary); }
h2 {
font-size: 1.75rem;
border-bottom: 2px solid var(--border);
padding-bottom: .5rem;
}
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

a {
color: var(--primary);
text-decoration: none;
transition: color .2s ease
transition: all 0.2s ease;
border-bottom: 1px solid transparent;
}

a:hover {
text-decoration: underline
}

a:focus {
outline: 2px solid var(--primary);
outline-offset: 2px;
border-radius: 2px
}

p>a {
p > a:not(:has(img)) {
border-bottom: 1px solid var(--primary)
}

ul,
ol {
padding-left: 2rem
}

li {
margin: .25rem 0
}

code {
background: var(--secondary-bg);
padding: .2em .4em;
background: var(--bg-alt);
padding: 0.2em 0.4em;
border-radius: var(--radius);
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
font-size: 85%
font-family: "SF Mono", Consolas, Monaco, monospace;
font-size: 85%;
}

pre code {
display: block;
padding: 1rem;
overflow: auto;
line-height: 1.45;
width: 100%
background: var(--bg-alt);
border-radius: var(--radius);
box-shadow: var(--shadow);
}

table {
border-collapse: collapse;
width: 100%;
margin: 1rem 0
border-collapse: collapse;
margin: 1rem 0;
box-shadow: var(--shadow);
border-radius: var(--radius);
overflow: hidden;
}

th,
td {
padding: .5rem;
border: 1px solid var(--border)
th, td {
padding: 0.75rem;
text-align: left;
border: 1px solid var(--border);
}

th {
background: var(--secondary-bg);
font-weight: 600
background: var(--bg-alt);
font-weight: 600;
}

img {
max-width: 100%;
height: auto
}

img[src*="badge"] {
vertical-align: middle
}

@media print {
body {
color: black;
background: white
}

a {
color: black;
text-decoration: underline
}

@page {
margin: 2cm
}
height: auto;
border-radius: var(--radius);
}

@media (max-width:768px) {
@media (max-width: 768px) {
body {
padding: 1rem
}

h1 {
font-size: 1.75rem
}

h2 {
font-size: 1.25rem
padding: 1rem;
}

h3 {
font-size: 1.1rem

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

table {
display: block;
overflow-x: auto;
}
}

0 comments on commit aeb977e

Please sign in to comment.