Skip to content

jarrenb/bdefaultsm-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

bdefaultsm css v3.0

in my on-line wanderings i came across a github project called sakura made by a person name oxalorg. the idea being a classless css stylesheet to instantly give style to an html page that had nothing but vanilla html and no classes or ids or anything else

browsers all have this anyway. if you make an html document with text,your browser will style it according to its default values that have been assigned by the humans that make the browser

and i actually kind of like the default (default styles are basically the same from browser to browser)

sakura is an attempt to make a default style that looks a little bit better

the idea appeals to me. if i were developing my own browser and were able to make a default page containing all the typical html elements look however i want, how would i choose to make it look? how should a simple hello world! look?

bdefaultsm.css is my attempt at this

colors

the browser has default colors and they're good, but they're not what i want

clrs.cc is a nice starting point for default colors. i will use them for now and update them as i see fit

for a future version of this more useful than i expected tool

having a catch-all css stylesheet doesn't really make sense. i may not need or want form styles on my page if my page doesn't have any forms. i do like the idea of classless styles, but only when i need them. so i think for the next version of bdefaultsm, i'll try and implement some of the ideas that come from an attempt to make bdefaultsm more modular. i like the idea of if i add a p tag to some html, then maybe a bdefaultsm script automatically adds its p styles to my stylesheet; and vice versa: if i remove the last p tag from my html, bdefaultsm knows i don't need those sweet sweet p styles anymore and removes them automatically from my stylesheet. i may not have the skillz to implement this until much farther down the road, but it's a cool goal to set i think

version 3

i've decided to remove the normalize css file after reading (actually skimming, and maybe i shouldn't be this easily swayed by arguments or maybe it just means i never really liked the idea of using a normalize for this project in the first place and i just did because i thought i should because that's what people do) this article

i've switched all "em" units and "px" units to rem and set the font-size of html to 18px because 18px is dope

opinionated

this is an opinionated thing. i have opinions!

page width and centering

before, i didn't have a maximum page width and centering. but now i do because after a certain width, it just feels right. maybe i'll get rid of it again in the future, but for now it's in

html

the index.html page could also be an example of how i currently think a straightfoward html page should be structured

typography

font-size

line-height

space between elements

i read somewhere someone's css technique of removing any margin top that an element might have and only using margin-bottom or margin-right for element spacing for the frontend of their pages. i like this idea and i've begun implementing it a little bit in my own projects, and now i've begun implementing it in this project

as of right now, 9/28/2017, i've only explicitly removed the margin-top from all h tags (h1, h2, h3, etc...) and both unordered and ordered list tags. i removed margin-top from these elements and set margin-bottom to 1rem

this will be what i do for the rest of the elements as i come across them, unless of course i have to implement it a little bit different for whatever reason, in which case i'll come back here and document it

lists

when i write lists by hand, i bullet them with a hyphen. the same goes for markdown. i've never taken the time to fill-in a little circle to make a bullet point when i make a list. so, since this is an opinionated stylesheet, i've decided to make unordered lists have a hyphen instead of a bullet point

links

the color of the text of a link stays the same as the color of all the other text on the page. the link is underlined with a border-bottom, rather than the text-decoration of underline. the border-bottom is the color blue which falls sort of inline with the default color of links used by all browsers. the border-bottom and its blue color indicate that the text is a link

on hover, the background color of the text changes to the same color blue of the border-bottom; because the blue is so dark, i have the text color change to white

i like this way of doing things because it makes links stand out, but not draw too much attention to themselves, while still being easily identifiable as links. and then when the user hovers over the link, all doubt as to whether it was a link is completely removed and the link becomes something more like a button in its style

i got the idea to do it this way from the gatsbyjs.org (specifically the tutorial)

About

the only css file you need. it's how i wish pages without any styles would look normally. it's a css reset but specifically for me to look at and enjoy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published