1
0
mirror of https://github.com/github/choosealicense.com synced 2025-01-03 18:41:47 +01:00

Update application.css.

Clean up fonts; there's no need to specify all of them in each selector since they are inherited.
Also, use the shorthand font property.
This commit is contained in:
XhmikosR 2013-10-30 19:49:15 +02:00
parent 99005a5002
commit ccb7a12ef2

View File

@ -7,9 +7,7 @@ layout: nil
body { body {
background: #f5f1ec url(../images/bg.jpg); background: #f5f1ec url(../images/bg.jpg);
color: #5c5855; color: #5c5855;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.4;
} }
a { a {
@ -17,6 +15,7 @@ a {
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
text-decoration: underline; text-decoration: underline;
} }
@ -62,43 +61,36 @@ a:hover {
background-image: linear-gradient(#e7e5e0, #d0ceca); background-image: linear-gradient(#e7e5e0, #d0ceca);
} }
h1 { h1, h2, h3, h5 {
color: #443a33;
font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif; font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif;
font-size: 40px;
font-weight: 900; font-weight: 900;
line-height: 1.1; line-height: 1.1;
}
h1 {
color: #443a33;
font-size: 40px;
margin-bottom: 25px; margin-bottom: 25px;
} }
h2 { h2 {
color: #443a33; color: #443a33;
opacity: 0.8; opacity: 0.8;
font-family: 'Chivo', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: 24px; font-size: 24px;
/* font-size: 18px; */
font-weight: 900;
line-height: 1.1;
margin-top: 24px; margin-top: 24px;
margin-bottom: 10px; margin-bottom: 10px;
} }
h3 { h3 {
color: #443a33; color: #443a33;
font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif;
font-size: 15px; font-size: 15px;
font-weight: 900;
line-height: 1.1;
margin-top: 20px; margin-top: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
h5 { h5 {
color: #443a33; color: #443a33;
font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif;
font-size: 14px; font-size: 14px;
font-weight: 900;
line-height: 1.1;
margin-bottom: 15px; margin-bottom: 15px;
} }
@ -123,21 +115,22 @@ strong {
padding-top: 20px; padding-top: 20px;
text-align: center; text-align: center;
} }
.home h1 { .home h1 {
font-size: 63px; font-size: 63px;
line-height: 1.1; line-height: 1.1;
margin-bottom: 25px; margin-bottom: 25px;
} }
.home h2 { .home h2 {
color: #149ad4; color: #149ad4;
font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif;
font-size: 27px; font-size: 27px;
font-weight: 900;
line-height: 70px; line-height: 70px;
margin-bottom: 45px; margin-bottom: 45px;
vertical-align: middle; vertical-align: middle;
opacity: 1; opacity: 1;
} }
.home h2 span { .home h2 span {
color: #e9e6e2; color: #e9e6e2;
font-size: 70px; font-size: 70px;
@ -150,24 +143,25 @@ strong {
width: 900px; width: 900px;
margin: 0 auto 20px; margin: 0 auto 20px;
} }
.triptych li { .triptych li {
width: 280px; width: 280px;
float: left; float: left;
margin-left: 27px; margin-left: 27px;
text-align: center; text-align: center;
} }
.triptych li:first-child { .triptych li:first-child {
margin-left: 0; margin-left: 0;
} }
.triptych li > a { .triptych li > a {
text-decoration: none; text-decoration: none;
} }
.triptych h3 { .triptych h3 {
color: #443a33; color: #443a33;
font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif;
font-size: 22px; font-size: 22px;
font-weight: 900;
line-height: 1.1;
margin: 0 auto 20px auto; margin: 0 auto 20px auto;
width: 220px; width: 220px;
} }
@ -175,9 +169,11 @@ strong {
.situations .whatever { .situations .whatever {
margin-top: 16px; margin-top: 16px;
} }
.situations .copyleft { .situations .copyleft {
margin-top: 3px; margin-top: 3px;
} }
.situations .button { .situations .button {
margin-top: 20px; margin-top: 20px;
} }
@ -205,10 +201,7 @@ strong {
} }
.license-family-name { .license-family-name {
font-family: 'Chivo', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: 28px; font-size: 28px;
font-weight: 900;
line-height: 1.1;
} }
.license-family-description { .license-family-description {
@ -222,36 +215,41 @@ strong {
margin-bottom: 12px; margin-bottom: 12px;
width: 100%; width: 100%;
} }
.license-rules th, .license-rules th,
.license-rules td { .license-rules td {
width: 33%; width: 33%;
} }
.license-rules th { .license-rules th {
font-size: 15px; font-size: 15px;
padding: 5px 10px 5px 0; padding: 5px 10px 5px 0;
vertical-align: bottom; vertical-align: bottom;
} }
.license-rules th.summary { .license-rules th.summary {
line-height: 1.4; line-height: 1.4;
} }
.license-rules .name { .license-rules .name {
border-right: solid 1px #d9d7d2; border-right: solid 1px #d9d7d2;
padding-left: 0; padding-left: 0;
width: 280px; width: 280px;
} }
.license-rules .name a { .license-rules .name a {
font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif;
font-size: 28px; font-size: 28px;
font-weight: 900;
line-height: 1.1;
} }
.license-rules .name small a { .license-rules .name small a {
font-size: 16px; font-size: 16px;
} }
.license-rules td { .license-rules td {
padding: 4px 0 12px 0; padding: 4px 0 12px 0;
vertical-align: top; vertical-align: top;
} }
.license-rules .label { .license-rules .label {
font-weight: bold; font-weight: bold;
} }
@ -263,15 +261,19 @@ strong {
margin-bottom: 5px; margin-bottom: 5px;
padding-left: 16px; padding-left: 16px;
} }
.license-rules li:hover { .license-rules li:hover {
color: #443a33; color: #443a33;
} }
.license-required li { .license-required li {
background-image: url(../images/blue-dot@2x.png); background-image: url(../images/blue-dot@2x.png);
} }
.license-permitted li { .license-permitted li {
background-image: url(../images/green-dot@2x.png); background-image: url(../images/green-dot@2x.png);
} }
.license-forbidden li { .license-forbidden li {
background-image: url(../images/red-dot@2x.png); background-image: url(../images/red-dot@2x.png);
} }
@ -309,16 +311,20 @@ strong {
margin-top: -110px; margin-top: -110px;
width: 100%; width: 100%;
} }
.sidebar .how-to-apply { .sidebar .how-to-apply {
font-size: 12px; font-size: 12px;
margin-top: -15px; margin-top: -15px;
} }
.sidebar .how-to-apply p { .sidebar .how-to-apply p {
line-height: 1.5; line-height: 1.5;
} }
.sidebar .how-to-apply p:last-child { .sidebar .how-to-apply p:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.sidebar .note { .sidebar .note {
font-style: italic; font-style: italic;
} }
@ -327,6 +333,7 @@ strong {
margin-top: 4px; margin-top: 4px;
margin-bottom: 30px; margin-bottom: 30px;
} }
.sidebar .source a { .sidebar .source a {
padding-left: 20px; padding-left: 20px;
background: transparent url(../images/source@2x.png) 0 1px no-repeat; background: transparent url(../images/source@2x.png) 0 1px no-repeat;
@ -334,8 +341,7 @@ strong {
} }
.sidebar .boilerplate { .sidebar .boilerplate {
font-family: 'courier new', courier; font: 0.7em "Courier new", courier;
font-size: 0.7em;
} }
.projects-with-license li { .projects-with-license li {
@ -351,17 +357,21 @@ strong {
text-align: left; text-align: left;
line-height: 1.5; line-height: 1.5;
} }
.site-footer a { .site-footer a {
color: #443a33; color: #443a33;
font-weight: normal; font-weight: normal;
} }
.site-footer p { .site-footer p {
float: left; float: left;
margin-top: 0; margin-top: 0;
} }
.site-footer nav { .site-footer nav {
float: right; float: right;
} }
.site-footer nav a { .site-footer nav a {
display: inline-block; display: inline-block;
margin-left: 20px; margin-left: 20px;