Ads+Data Design Offsite 2014
h1 {
font-size: 24px;
font-weight: bold;
text-transform: uppercase;
}
Text
CSS is composed of style "rules"
Select every paragraph element and make the font-size: 15px.
p {
font-size: 15px;
}
Select every image element and make them 500 x 500 height.
img {
width: 500px;
height: 500px;
}
Every element? What if I want to control a specific element?
<p id="intro">This is an intro paragraph.</p>
<span class="warning">Warning!</span>
#intro {
property: value;
}
.warning {
property: value;
}
An ID name is preceeded by a pound "#" sign
A class name is preceeded by a period "." sign
a:hover {
text-decoration: underline;
}
This styles a link to have a hover with an underline
a:link // unvisited link
a:visited // visited link
a:hover // hover link
a:active // activated link
Combine selectors if you want to get specific
p.warning a {
property: value;
}
Selects all link elements in a paragraph with class .warning
More on specificity
Pull - Pull refers to when you are fetching in changes and merging them. For instance, if someone has edited the remote file you're both working on, you'll want to pull in those changes to your local copy so that it's up to date.
Pull Request - Pull requests are proposed changes to a repository submitted by a user and accepted or rejected by a repository's collaborators. Like issues, pull requests each have their own discussion forum.
http://git.corp.yahoo.com/ads-data/bootstrap