Skip to content

nathnp/nthp.me-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NTHP.me CSS

Lazy link deploy

This is the CSS file used for my website nthp.me. It is a modified version of simple.css.

How To Use

If you would like to use this CSS file, you can either

  1. Download the style.css file
  • Pros: Fast load times
  • Cons: No automatic updates
  1. Add this line to your head <link rel="stylesheet" href="https://css.nthp.me/style.css">
  • Pros: Easy to use, automatic updates
  • Cons: Slower load times, atomatic updates

Note

While automatic updates sound good, your site will start using any changes I make the moment I push the changes. While I provide the link for those that want to be lazy, I recomend that you download the style.css file, and host it yourself.

Added Classes

flexbox: To keep my posts tags from line braking

.flexbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

title: To easily give something the accent color

.title {
  color: var(--accent)
}

invisTable: To make a table that is invisible, other than the content.

.invisTable {
  td,
  th {
	border: 1px solid var(--bg);
	text-align: start;
	padding: 0.5rem;
  }
  
  th {
	background-color: var(--bg);
	font-weight: bold;
  }
  
  tr:nth-child(even) {
	/* Set every other cell slightly darker. Improves readability. */
	background-color: var(--bg);
  }
}

smallmarg: sets the top and bottom margin to 1.5rem

.smallmarg {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

invisAside: Make the border of aside invisible

.invisAside {
  background-color: var(--bg);
  border: 1px solid var(--bg);
}

Thanks @kevquirk and @lkhrs for making a great CSS file.

About

CSS file used for nthp.me

Resources

License

Stars

Watchers

Forks

Languages