1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-09 04:37:48 +02:00
choosealicense.com/assets/css/application.css

488 lines
8.4 KiB
CSS
Raw Normal View History

2012-09-12 21:20:53 +02:00
body {
background-image: url(../img/bg.jpg);
2013-07-16 20:24:45 +02:00
color: #5c5855;
font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
2012-09-12 21:20:53 +02:00
}
a {
color: #149ad4;
font-weight: bold;
text-decoration: none;
}
2012-09-12 21:20:53 +02:00
a:hover {
text-decoration: underline;
}
h1, h2, h3, h5 {
color: #443a33;
2013-10-30 19:23:28 +01:00
font-family: Chivo, "Helvetica Neue", Helvetica, Arial, serif;
2012-09-12 21:20:53 +02:00
font-weight: 900;
line-height: 1.1;
}
h1 {
font-size: 40px;
2012-09-12 21:20:53 +02:00
margin-bottom: 25px;
}
2012-11-29 16:40:26 +01:00
h2 {
opacity: 0.8;
font-size: 24px;
margin-top: 24px;
2012-11-29 16:40:26 +01:00
margin-bottom: 10px;
}
h3 {
font-size: 15px;
margin-top: 20px;
margin-bottom: 10px;
}
2012-09-12 21:20:53 +02:00
h5 {
font-size: 14px;
margin-bottom: 15px;
}
p {
margin-bottom: 1em;
}
ol, ul { padding: 0; margin: 0; list-style-type: none; }
th, td { text-align: left; font-weight: normal; }
2012-09-12 21:20:53 +02:00
strong {
color: #443b34;
}
.container {
2012-09-12 21:20:53 +02:00
margin: 40px auto;
width: 940px;
2012-09-12 21:20:53 +02:00
}
.home {
2012-09-12 21:20:53 +02:00
text-align: center;
}
.home h1 {
2012-09-12 21:20:53 +02:00
font-size: 63px;
}
.home h2 {
2012-09-12 21:20:53 +02:00
color: #149ad4;
font-size: 27px;
line-height: 70px;
margin-bottom: 45px;
vertical-align: middle;
opacity: 1;
2012-09-12 21:20:53 +02:00
}
.home h2 span {
2012-09-12 21:20:53 +02:00
color: #e9e6e2;
font-size: 70px;
padding: 0 5px;
position: relative;
top: 10px;
}
.triptych {
width: 900px;
margin: 0 auto 20px;
}
.triptych li {
width: 280px;
2012-09-12 21:20:53 +02:00
float: left;
margin-left: 27px;
}
.triptych li:first-child {
2012-09-12 21:20:53 +02:00
margin-left: 0;
2012-11-26 18:34:26 +01:00
}
.triptych li > a {
2012-11-26 18:34:26 +01:00
text-decoration: none;
}
.triptych h3 {
2012-09-12 21:20:53 +02:00
font-size: 22px;
margin: 0 auto 20px auto;
width: 220px;
2012-09-12 21:20:53 +02:00
}
2012-11-26 18:34:26 +01:00
.situations .whatever {
margin-top: 16px;
}
.situations .copyleft {
margin-top: 3px;
}
.situations .button {
margin-top: 20px;
}
.triptych-sprite {
background-image: url(../img/home-sprite.png);
background-repeat: no-repeat;
display: inline-block;
}
.three-arrows { background-position: 0 0; width: 72px; height: 57px; }
.lightbulb { background-position: 0 -57px; width: 43px; height: 72px; }
.circular { background-position: 0 -129px; width: 72px; height: 69px; }
2013-11-06 16:10:48 +01:00
.license-family {
clear: both;
margin-bottom: 50px;
}
.license-family-heading {
float: left;
width: 35%;
}
.license-details {
2013-12-10 08:49:05 +01:00
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
float: left;
2013-11-06 16:10:48 +01:00
width: 55%;
padding-left: 20px;
2013-11-06 16:10:48 +01:00
}
.license-variations {
2013-12-10 08:49:05 +01:00
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
2013-11-06 16:10:48 +01:00
height: 31px;
padding-top: 23px;
2013-11-19 19:32:42 +01:00
margin-left: -10px;
2013-11-06 16:10:48 +01:00
}
.license-family-name {
font-size: 28px;
}
.license-family-description {
color: #5c5855;
}
.license-rules {
2013-11-06 16:10:48 +01:00
border-bottom: solid 1px #d9d7d2;
2012-09-12 21:20:53 +02:00
font-size: 13px;
line-height: 1.3;
2013-11-06 16:10:48 +01:00
margin-bottom: 12px;
2013-06-11 20:13:00 +02:00
width: 100%;
2012-09-12 21:20:53 +02:00
}
2013-11-06 16:10:48 +01:00
.license-rules th,
.license-rules td {
width: 33%;
}
.license-rules th {
2013-11-06 16:10:48 +01:00
font-size: 15px;
padding: 5px 10px 5px 0;
2013-06-11 20:13:00 +02:00
vertical-align: bottom;
}
2013-06-11 20:13:00 +02:00
.license-rules th.summary {
line-height: 1.4;
2012-09-12 21:20:53 +02:00
}
.license-rules .name {
2013-12-10 08:49:05 +01:00
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
2012-09-12 21:20:53 +02:00
border-right: solid 1px #d9d7d2;
2013-06-11 20:13:00 +02:00
padding-left: 0;
width: 280px;
2012-09-12 21:20:53 +02:00
}
.license-rules .name a {
2012-09-12 21:20:53 +02:00
font-size: 28px;
}
.license-rules .name small a {
font-size: 16px;
}
.license-rules td {
2013-11-06 16:10:48 +01:00
padding: 4px 0 12px 0;
vertical-align: top;
2012-09-12 21:20:53 +02:00
}
.license-rules .label {
2012-09-12 21:20:53 +02:00
font-weight: bold;
}
.license-rules li {
2012-09-12 21:20:53 +02:00
margin-right: 15px;
2013-11-06 16:10:48 +01:00
margin-bottom: 5px;
2012-09-12 21:20:53 +02:00
}
.license-rules li:hover {
2012-12-04 23:12:12 +01:00
color: #443a33;
}
.license-sprite {
background-image: url(../img/license-sprite.png);
background-repeat: no-repeat;
display: inline-block;
2012-09-12 21:20:53 +02:00
}
.sidebar .source span { background-position: 0 0; width: 16px; height: 12px; }
.license-forbidden span { background-position: -16px 0; width: 12px; height: 12px; }
.license-permitted span { background-position: -28px 0; width: 12px; height: 12px; }
.license-required span { background-position: -40px 0; width: 12px; height: 12px; }
2012-09-12 21:20:53 +02:00
.license-rules-sidebar li {
float: none;
padding-bottom: 3px;
}
.license-body {
2012-11-28 19:40:00 +01:00
font-size: 15px;
2012-09-12 21:20:53 +02:00
float: left;
width: 700px;
2012-09-12 21:20:53 +02:00
}
.license-body pre {
font-family: Consolas, Monaco, Courier, monospace;
font-size: 14px;
background-color: #fff;
background-color: rgba(255, 255, 255, 0.8);
border: 1px solid #e9e6e1;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
padding: 20px;
}
.sidebar {
2012-09-12 21:20:53 +02:00
float: right;
width: 220px;
font-size: 12px;
2012-09-12 21:20:53 +02:00
}
2012-11-28 19:40:00 +01:00
.sidebar a.button {
2012-09-12 21:20:53 +02:00
margin-top: -110px;
width: 100%;
}
.sidebar .how-to-apply {
2012-09-12 21:20:53 +02:00
font-size: 12px;
margin-top: -15px;
}
.sidebar .how-to-apply p {
2012-09-12 21:20:53 +02:00
line-height: 1.5;
}
.sidebar .how-to-apply p:last-child {
2012-09-12 21:20:53 +02:00
margin-bottom: 0;
}
2013-01-22 01:52:38 +01:00
.sidebar .note {
font-style: italic;
}
.sidebar .source {
margin-top: 4px;
margin-bottom: 30px;
}
.sidebar .boilerplate {
font: 0.7em "Courier new", courier;
2012-11-27 22:16:07 +01:00
}
.button {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-color: #ceccc9 #b6b4b1 #a6a4a2 #b6b4b1;
border-style: solid;
border-width: 1px;
color: #443b34;
-webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px, rgba(255, 255, 255, 0.8) 0 1px 0 0 inset;
-moz-box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px, rgba(255, 255, 255, 0.8) 0 1px 0 0 inset;
box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px, rgba(255, 255, 255, 0.8) 0 1px 0 0 inset;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e7e5e0), color-stop(100%, #d5d3cf));
background-image: -webkit-linear-gradient(#e7e5e0, #d5d3cf);
background-image: -moz-linear-gradient(#e7e5e0, #d5d3cf);
background-image: -o-linear-gradient(#e7e5e0, #d5d3cf);
background-image: linear-gradient(#e7e5e0, #d5d3cf);
display: inline-block;
font-size: 12px;
font-weight: normal;
padding: 5px 10px;
text-align: center;
vertical-align: middle;
}
.button:hover {
text-decoration: none;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e7e5e0), color-stop(100%, #d0ceca));
background-image: -webkit-linear-gradient(#e7e5e0, #d0ceca);
background-image: -moz-linear-gradient(#e7e5e0, #d0ceca);
background-image: -o-linear-gradient(#e7e5e0, #d0ceca);
background-image: linear-gradient(#e7e5e0, #d0ceca);
}
.projects-with-license li {
padding-bottom: 3px;
}
.site-footer {
2012-11-27 22:16:07 +01:00
border-top: 1px solid #e9e6e1;
margin-top: 30px;
padding-top: 20px;
2013-07-16 20:24:45 +02:00
color: #5c5855;
2012-11-27 22:16:07 +01:00
font-size: 12px;
text-align: left;
line-height: 1.5;
}
.site-footer a {
2012-11-27 22:16:07 +01:00
color: #443a33;
font-weight: normal;
}
.site-footer p {
2012-11-27 22:16:07 +01:00
float: left;
margin-top: 0;
2012-11-27 22:16:07 +01:00
}
.site-footer nav {
2012-11-27 22:16:07 +01:00
float: right;
}
.site-footer nav a {
2012-11-27 22:16:07 +01:00
display: inline-block;
margin-left: 20px;
}
.bullets {
list-style-type: disc;
}
.bullets > li {
margin-left: 2em;
}
2013-11-06 16:10:48 +01:00
.nav-pills > li {
float: left;
display: block;
margin-right: 10px;
}
.nav-pills > li > a {
padding: 5px 10px;
border-radius: 3px;
}
.nav-pills > li.active > a {
background-color: #149ad4;
color: #f7f4ef;
}
.variation-tab {
display: none;
}
.variation-tab.active {
display: block;
}
2013-11-06 16:10:48 +01:00
.small {
font-size: 90%;
}
2012-12-04 23:12:12 +01:00
/* Qtip styles */
.qtip-required,
.qtip-permitted,
.qtip-forbidden {
font-size: 12px;
line-height: 1.3;
}
2012-12-04 23:12:12 +01:00
.qtip-required {
background-color: #d0ebf6;
border-color: #149ad4;
color: #0d648a;
2012-12-04 23:12:12 +01:00
}
.qtip-required .qtip-titlebar {
background-color: #149ad4;
color: #fff;
2012-12-04 23:12:12 +01:00
}
.qtip-permitted {
background-color: #d8f4d7;
border-color: #3dc637;
color: #298625;
2012-12-04 23:12:12 +01:00
}
.qtip-permitted .qtip-titlebar {
background-color: #3dc637;
color: #fff;
2012-12-04 23:12:12 +01:00
}
.qtip-forbidden {
background-color: #f4d9d8;
border-color: #c6403d;
color: #812a28;
2012-12-04 23:12:12 +01:00
}
.qtip-forbidden .qtip-titlebar {
background-color: #c6403d;
color: #fff;
2012-12-04 23:12:12 +01:00
}
2012-11-27 22:16:07 +01:00
/* For modern browsers */
2013-12-09 19:05:34 +01:00
.clearfix:before,
.clearfix:after {
content: "";
display: table;
2012-11-27 22:16:07 +01:00
}
2013-12-09 19:05:34 +01:00
.clearfix:after {
clear: both;
2012-11-27 22:16:07 +01:00
}
.with-love { float: right; clear: right; }
@media only screen and (-webkit-min-device-pixel-ratio: 2.0),
only screen and (min--moz-device-pixel-ratio: 2.0),
only screen and (-o-min-device-pixel-ratio: 200/100),
only screen and (min-device-pixel-ratio: 2.0) {
.three-arrows,
.lightbulb,
.circular {
background-image: url(../img/home-sprite@2x.png);
-webkit-background-size: 72px 198px;
-moz-background-size: 72px 198px;
background-size: 72px 198px;
}
.license-sprite {
background-image: url(../img/license-sprite@2x.png);
-webkit-background-size: 52px 12px;
-moz-background-size: 52px 12px;
background-size: 52px 12px;
}
}