Autocommit by [fab staticfiles]
parent
1b6cc43261
commit
1fef6fb13b
|
@ -6,12 +6,14 @@ def staticfiles():
|
|||
BASE_PATH = os.path.dirname(__file__)
|
||||
local('lessc %s/media/css/style.less %s/media/css/style.css' % (BASE_PATH, BASE_PATH))
|
||||
local('coffee -c %s/media/js/script.coffee' % BASE_PATH)
|
||||
local('sed -i -e \'s/\/media\//https:\/\/dn2p0mzo970os.cloudfront.net\//g\' %s/media/css/style.css' % BASE_PATH)
|
||||
local('rm %s/media/css/style.css-e' % BASE_PATH)
|
||||
try:
|
||||
local('hg commit -m "Autocommit by [fab staticfiles]"')
|
||||
local('hg push')
|
||||
except:
|
||||
pass
|
||||
local('%s/manage.py collectstatic' % BASE_PATH)
|
||||
#local('%s/manage.py collectstatic' % BASE_PATH)
|
||||
|
||||
def deployall():
|
||||
staticfiles()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@font-face {
|
||||
font-family: 'InconsolataMedium';
|
||||
src: url('/media/fonts/Inconsolata-webfont.eot');
|
||||
src: url('/media/fonts/Inconsolata-webfont.eot?#iefix') format('embedded-opentype'), url('/media/fonts/Inconsolata-webfont.woff') format('woff'), url('/media/fonts/Inconsolata-webfont.ttf') format('truetype'), url('/media/fonts/Inconsolata-webfont.svg#InconsolataMedium') format('svg');
|
||||
src: url('https://dn2p0mzo970os.cloudfront.net/fonts/Inconsolata-webfont.eot');
|
||||
src: url('https://dn2p0mzo970os.cloudfront.net/fonts/Inconsolata-webfont.eot?#iefix') format('embedded-opentype'), url('https://dn2p0mzo970os.cloudfront.net/fonts/Inconsolata-webfont.woff') format('woff'), url('https://dn2p0mzo970os.cloudfront.net/fonts/Inconsolata-webfont.ttf') format('truetype'), url('https://dn2p0mzo970os.cloudfront.net/fonts/Inconsolata-webfont.svg#InconsolataMedium') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
|||
box-shadow: 0 0 10px #46cd46;
|
||||
}
|
||||
html, body {
|
||||
background: #ffffff url('/media/images/bg.gif') top left repeat;
|
||||
background: #ffffff url('https://dn2p0mzo970os.cloudfront.net/images/bg.gif') top left repeat;
|
||||
}
|
||||
body {
|
||||
color: #666;
|
||||
|
@ -20,7 +20,7 @@ body {
|
|||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
header.main {
|
||||
background: #12343d url('/media/images/header-bg.gif') top left repeat-x;
|
||||
background: #12343d url('https://dn2p0mzo970os.cloudfront.net/images/header-bg.gif') top left repeat-x;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
height: 66px;
|
||||
position: relative;
|
||||
|
@ -34,7 +34,7 @@ header.main div.inner {
|
|||
width: 939px;
|
||||
}
|
||||
header.main div.inner div.shadey {
|
||||
background: transparent url('/media/images/header-inner-bg.png') top left no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/header-inner-bg.png') top left no-repeat;
|
||||
height: 65px;
|
||||
left: -157px;
|
||||
position: absolute;
|
||||
|
@ -48,7 +48,7 @@ header.main div.inner h1 {
|
|||
z-index: 50;
|
||||
}
|
||||
header.main div.inner h1 a {
|
||||
background: transparent url('/media/images/logo.png') top left no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/logo.png') top left no-repeat;
|
||||
display: block;
|
||||
float: left;
|
||||
height: 35px;
|
||||
|
@ -74,8 +74,8 @@ header.main div.inner form.search div.infield label {
|
|||
top: 8px;
|
||||
}
|
||||
header.main div.inner form.search div.infield input {
|
||||
background: #17484f url('/media/images/search-icon.png') top left no-repeat;
|
||||
background: rgba(43, 82, 93, 0.5) url('/media/images/search-icon.png') 8px center no-repeat;
|
||||
background: #17484f url('https://dn2p0mzo970os.cloudfront.net/images/search-icon.png') top left no-repeat;
|
||||
background: rgba(43, 82, 93, 0.5) url('https://dn2p0mzo970os.cloudfront.net/images/search-icon.png') 8px center no-repeat;
|
||||
border: 1px solid #3A5E67;
|
||||
color: #FFF;
|
||||
font: normal 12px 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
|
||||
|
@ -162,7 +162,7 @@ section.main aside.main {
|
|||
width: 190px;
|
||||
}
|
||||
section.main aside.main section.ad div.asset {
|
||||
background: #ffffff url('/media/images/ad.jpg') center center no-repeat;
|
||||
background: #ffffff url('https://dn2p0mzo970os.cloudfront.net/images/ad.jpg') center center no-repeat;
|
||||
border: 1px solid #DDDDDD;
|
||||
height: 130px;
|
||||
margin: 0 15px 6px;
|
||||
|
@ -185,7 +185,7 @@ section.main aside.main section.tags {
|
|||
margin: 45px 15px;
|
||||
}
|
||||
section.main aside.main section.tags h1 {
|
||||
background: transparent url('/media/images/tags-icon.png') 0 0 no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/tags-icon.png') 0 0 no-repeat;
|
||||
color: #3BAAF3;
|
||||
font: bold 12px 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
|
||||
padding-bottom: 5px;
|
||||
|
@ -218,7 +218,7 @@ section.main aside.main nav.footer ul {
|
|||
margin: 0;
|
||||
}
|
||||
section.main aside.main nav.footer ul li {
|
||||
background: transparent url('/media/images/api-icon.png') center left no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/api-icon.png') center left no-repeat;
|
||||
margin: 6px 0 6px 0;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
@ -233,13 +233,13 @@ section.main aside.main nav.footer ul li a:hover {
|
|||
color: #333;
|
||||
}
|
||||
section.main aside.main nav.footer ul li.twitter {
|
||||
background: transparent url('/media/images/twitter-icon.png') 4px center no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/twitter-icon.png') 4px center no-repeat;
|
||||
}
|
||||
section.main aside.main nav.footer ul li.pro {
|
||||
background: transparent url('/media/images/upgrade-icon.png') 2px center no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/upgrade-icon.png') 2px center no-repeat;
|
||||
}
|
||||
section.main aside.main nav.footer ul li.groups {
|
||||
background: transparent url('/media/images/groups-icon.png') 2px center no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/groups-icon.png') 2px center no-repeat;
|
||||
}
|
||||
article.snipt {
|
||||
margin: 30px 0;
|
||||
|
@ -325,7 +325,7 @@ article.snipt div.container section.code div.highlight pre {
|
|||
padding: 13px 0;
|
||||
}
|
||||
article.snipt div.container section.code a.expand {
|
||||
background: #ffffff url('/media/images/expand.png') 15px 18px no-repeat;
|
||||
background: #ffffff url('https://dn2p0mzo970os.cloudfront.net/images/expand.png') 15px 18px no-repeat;
|
||||
border-top: 1px solid #F1F1EE;
|
||||
bottom: 0;
|
||||
color: #999999;
|
||||
|
@ -388,7 +388,7 @@ article.snipt div.container section.expanded div.highlight pre {
|
|||
padding-bottom: 60px;
|
||||
}
|
||||
article.snipt div.container section.expanded a.expand {
|
||||
background-image: url('/media/images/collapse.png');
|
||||
background-image: url('https://dn2p0mzo970os.cloudfront.net/images/collapse.png');
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
|
@ -405,7 +405,7 @@ article.snipt footer ul.attrs {
|
|||
margin: 15px 0 0 15px;
|
||||
}
|
||||
article.snipt footer ul.attrs li {
|
||||
background: transparent url('/media/images/calendar-icon.png') top left no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/calendar-icon.png') top left no-repeat;
|
||||
color: #999;
|
||||
display: inline;
|
||||
font: normal 12px 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
|
||||
|
@ -421,7 +421,7 @@ article.snipt footer ul.attrs li a:hover {
|
|||
text-decoration: underline;
|
||||
}
|
||||
article.snipt footer ul.attrs li.comments {
|
||||
background: transparent url('/media/images/comments-icon.png') 0 2px no-repeat;
|
||||
background: transparent url('https://dn2p0mzo970os.cloudfront.net/images/comments-icon.png') 0 2px no-repeat;
|
||||
}
|
||||
.group:after {
|
||||
content: ".";
|
||||
|
|
Loading…
Reference in New Issue