Skip to content

Commit

Permalink
Place inline CSS into their own files.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Feb 25, 2014
1 parent 7851a87 commit 7e4d761
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 80 deletions.
60 changes: 60 additions & 0 deletions doc/yeti/assets/component.css
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,60 @@
body,
.pure-g [class *= "pure-u"],
.pure-g-r [class *= "pure-u"],
h1, h2, h3, h4, h5, h6 {
font-family: 'Source Sans Pro', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, sans-serif;
}
body {
font-size: 14px;
}
#doc {
min-width: 0;
}
.sidebox .bd {
font-size: 12px;
}
.toc li {
font-weight: normal;
}
.yeti-hd {
border-bottom: 1px solid #ddd;
margin: 0 20px;
}
.yeti-hd h1 {
font-size: 300%;
letter-spacing: -1px;
margin: 5px 0 0;
padding-left: 0;
}
.yeti-hd h2 {
font-size: 470%;
font-weight: 100;
margin: 2%;
}
.yeti-hd img {
height: 52px;
width: 117px;
}
.yeti-hd .version {
font-size: 40%;
font-weight: normal;
padding: 5px;
background: #30418C;
color: #fff;
vertical-align: 60%;
border-radius: 10px;
}
.yeti-hd .links {
text-align: right;
line-height: 50px;
}
.yeti-hd a {
color: #242D79;
}
#doc .ft {
border-top: 1px solid #ddd;
margin: 0 20px;
}
#doc .ft p {
background-position: 0 0;
}
14 changes: 14 additions & 0 deletions doc/yeti/assets/footer.css
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,14 @@
.ft {
margin: 100px 10px;
font-size: 13px;
}
.ft p {
background: transparent url(https://s1.yimg.com/rz/d/yahoo_ydn_en-US_s_f_p_bestfit_developer-network.png) no-repeat center 0;
background-size: 132px 38px;
padding-top: 40px;
}
@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
.ft p {
background-image: url(https://s1.yimg.com/rz/d/yahoo_ydn_en-US_s_f_p_bestfit_developer-network_2x.png);
}
}
64 changes: 2 additions & 62 deletions doc/yeti/layouts/component.mustache
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,68 +7,8 @@
<link rel="stylesheet" href="{{yuiGridsUrl}}"> <link rel="stylesheet" href="{{yuiGridsUrl}}">
<link rel="stylesheet" href="{{projectAssets}}/css/main.css"> <link rel="stylesheet" href="{{projectAssets}}/css/main.css">
<link rel="stylesheet" href="{{projectAssets}}/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="{{projectAssets}}/vendor/prettify/prettify-min.css">
<style> <link rel="stylesheet" href="{{projectAssets}}/component.css">
body, <link rel="stylesheet" href="{{projectAssets}}/footer.css">
.pure-g [class *= "pure-u"],
.pure-g-r [class *= "pure-u"],
h1, h2, h3, h4, h5, h6 {
font-family: 'Source Sans Pro', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, sans-serif;
}
body {
font-size: 14px;
}
#doc {
min-width: 0;
}
.sidebox .bd {
font-size: 12px;
}
.toc li {
font-weight: normal;
}
.yeti-hd {
border-bottom: 1px solid #ddd;
margin: 0 20px;
}
.yeti-hd h1 {
font-size: 300%;
letter-spacing: -1px;
margin: 5px 0 0;
padding-left: 0;
}
.yeti-hd h2 {
font-size: 470%;
font-weight: 100;
margin: 2%;
}
.yeti-hd img {
height: 52px;
width: 117px;
}
.yeti-hd .version {
font-size: 40%;
font-weight: normal;
padding: 5px;
background: #30418C;
color: #fff;
vertical-align: 60%;
border-radius: 10px;
}
.yeti-hd .links {
text-align: right;
line-height: 50px;
}
.yeti-hd a {
color: #242D79;
}
#doc .ft {
border-top: 1px solid #ddd;
margin: 0 20px;
}
#doc .ft p {
background-position: 0 0;
}
</style>
</head> </head>
<body> <body>


Expand Down
3 changes: 1 addition & 2 deletions doc/yeti/layouts/main.mustache
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<link rel="stylesheet" href="{{yuiGridsUrl}}"> <link rel="stylesheet" href="{{yuiGridsUrl}}">
<link rel="stylesheet" href="{{projectAssets}}/css/main.css"> <link rel="stylesheet" href="{{projectAssets}}/css/main.css">
<link rel="stylesheet" href="{{projectAssets}}/landing.css"> <link rel="stylesheet" href="{{projectAssets}}/landing.css">
<style> <link rel="stylesheet" href="{{projectAssets}}/footer.css">
</style>
</head> </head>
<body> <body>
<div class="yeti-widget"> <div class="yeti-widget">
Expand Down
16 changes: 0 additions & 16 deletions doc/yeti/partials/footer.mustache
Original file line number Original file line Diff line number Diff line change
@@ -1,19 +1,3 @@
<style>
.ft {
margin: 100px 10px;
font-size: 13px;
}
.ft p {
background: transparent url(https://s1.yimg.com/rz/d/yahoo_ydn_en-US_s_f_p_bestfit_developer-network.png) no-repeat center 0;
background-size: 132px 38px;
padding-top: 40px;
}
@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
.ft p {
background-image: url(https://s1.yimg.com/rz/d/yahoo_ydn_en-US_s_f_p_bestfit_developer-network_2x.png);
}
}
</style>
<div class="ft"> <div class="ft">
<p> <p>
<a href="http://yeti.cx">Yeti</a> is made by <a href="http://yuilibrary.com/">YUI</a> at Yahoo <a href="http://yeti.cx">Yeti</a> is made by <a href="http://yuilibrary.com/">YUI</a> at Yahoo
Expand Down

0 comments on commit 7e4d761

Please sign in to comment.