~brettgilio/orcircd-web

3bcde15cd06c11c99c1cb604e63b55a7229a6c35 — Brett Gilio 6 months ago 4b4aecd
Add stylesheets.

* assets/styles/main.css: New file.
* assets/styles/org-webring.css: New file.
2 files changed, 345 insertions(+), 0 deletions(-)

A assets/styles/main.css
A assets/styles/org-webring.css
A assets/styles/main.css => assets/styles/main.css +219 -0
@@ 0,0 1,219 @@
/** Fixups */

/* Avoid elements wider than screen on mobile */
img
{
    display: inline-block;
    max-width: 100%;
}

img.logo {
    display: block;
    margin: 0 auto;
}

pre, code, sample
{
    white-space: pre-wrap;
    hyphens: none;
}

table
{
    max-width: 100%;
}


body
{
    margin: 0;
    line-height: 1.4;
    background: white;
    color: black;
}

/** Structural blocks */

#page-wrapper
{
    max-width: 1000px;

    padding-top: 2%;
    padding-bottom: 4%;
    
    margin-left:  auto; 
    margin-right: auto;

    display:flex;
    flex-direction: column;
    justify-content: center;
}


#nav-wrapper
{
    width: 100%;
    border-top: #006699 solid 1px;
    border-bottom: #006699 solid 1px;
}

#nav
{
    margin-top: 1%;
    margin-bottom: 1%;

    margin-left: 10%;
    margin-right: 10%;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

banner
{
    margin-top: 1em;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    width: 100%;
    background-color: #006699;
    text-align: center;
    color: white;
}

#breadcrumbs
{
    padding-top: 20px;
}

/* Make auxilliary "Site menu" and "Top of the page" link invisible on desktop */
#menu-link, #top-link
{
    display: none;
}

#content
{
    padding: 2%;
    min-height: 20em;
    border-bottom: #006699 solid 1px;
}

/** Typography */

@supports (hyphens: auto) or (-ms-hyphens: auto)
{
    #content
    {
        text-align: justify;
        hyphens: auto;
    }
}

body
{
    font-family: sans-serif;
    font-size: 110%
}
/** Misc visual styles */

pre
{
    background-color: #eaeaea;
    padding: 10px;
    border: 1px solid #aaaaaa;
}

code { background-color: #eaeaea }

/* Links */
a { color: #006699; }

a.nav, a.nav:visited
{
    color: #006699;
    text-decoration: none;
}

a.nav:hover { text-decoration: underline }

a.nav-active, a.nav-active:visited
{
    font-weight: bold;
}

a:visited
{
    color: #355670;
}

a.here { text-decoration: none; }

hr
{
    height: 1px;
    border: 0 none;
    color: #006699;
    background-color: #006699;
    width: 100%;
    margin-bottom: 2em;
    margin-top: 2em;
}

/* Tables */
table
{
    border-collapse: collapse;
}

th, td
{
    text-align: left;
}

table, th, td
{
   border: 1px solid #006699;
}

th, td
{
    padding: 0.5em; 
} 

.table-caption
{
    text-align: center;
}

/* Special styles */

ul.plain
{
    list-style-type: none;
}

ul.toc, ol.toc
{
    list-style-type: none;
}

.centered
{
    text-align: center;
}

.footer
{
    text-align: center;
    padding-top: 0.6em;
}

div#page-timestamp, div#last-modified
{
    color: #999999;
    padding-top: 1em;
    font-size: 80%;
    text-align: right;
}

A assets/styles/org-webring.css => assets/styles/org-webring.css +126 -0
@@ 0,0 1,126 @@
/*
This file is released to the public domain.
*/

/* Style for WEBRING */
.org-webring .org-webring-articles {
    display: flex;
}
.org-webring .org-webring-article-title {
    margin: 0;
    font-size: 85%;
}
.org-webring .org-webring-article {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    margin: 0 0.5rem;
    padding: 0.5rem;
    border: 0.1rem black solid;
    border-color: black;
}
.org-webring .org-webring-article-summary {
    font-size: 75%;
    flex: 1 1 0;
}
.org-webring .org-webring-attribution {
    text-align: right;
    font-size: 0.8rem;
    padding-right: 0.5rem;
    color: #666;
}
.org-webring .org-webring-article-date {
    text-align: right;
    color: black;
    font-size: 70%;
}
.org-webring .org-webring-article-source {
    text-align: right;
    color: black;
    font-size: 70%;
}
.org-webring .org-webring-timestamp {
    color: #666;
}
@media screen and (max-width: 600px) {
    .org-webring .org-webring-articles {
	display: flex;
	flex-direction: column;
    }
}
@media screen and (max-width: 600px) {
    .org-webring .org-webring-article {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	margin: 0 0.5rem;
	margin-bottom: 0.5rem;
	padding: 0.5rem;
	border: 0.1rem black solid;
	border-color: black;
    }
}

/* Style for PLANET */
.org-webring-planet .org-webring-articles {
    display: flex;
    flex-direction: column;
}
.org-webring-planet .org-webring-article-title {
    margin: 0;
}
.org-webring-planet .org-webring-article {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	margin: 0 0.5rem;
	margin-bottom: 0.5rem;
	padding: 0.5rem;
	border-bottom: 0.1rem black solid;
	border-color: black;
}
.org-webring-planet .org-webring-article-summary {
    font-size: 0.8rem;
    flex: 1 1 0;
}
.org-webring-planet .org-webring-attribution {
    text-align: right;
    font-size: 0.8rem;
    padding-right: 0.5rem;
    color: #666;
}
.org-webring-planet .org-webring-article-date {
    text-align: right;
    color: black;
}
.org-webring-planet .org-webring-article-source {
    text-align: right;
    color: black;
}
.org-webring-planet .org-webring-timestamp {
    color: #666;
}
.org-webring-planet .org-webring-feed-url {
    color: #666;
}
.org-webring-planet .column-left {
    float: left;
    width: 70%;
    margin-right: 4px;
}
.org-webring-planet .column-right {
    float: right;
    width: 25%
}
@media only screen and (max-width: 600px) {
    .org-webring-planet .column-left {
        width: 100%;
        padding-bottom: 10px;
        float: none;
    }
    .org-webring-planet .column-right {
        width: 100%;
        padding-bottom: 10px;
        float: none;
    }
}