New-style dates
parent
c8b2d2d6f9
commit
8e289e8006
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<script type="text/javascript" src="{{ STATIC_URL }}js/pro.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}js/pro.js"></script>
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pro.css?3" />
|
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pro.css?4" />
|
||||||
|
|
||||||
{% if has_snipts and not detail %}
|
{% if has_snipts and not detail %}
|
||||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ request.path }}?rss{% if not public %}&api_key={{ request.user.api_key.key }}{% endif %}" />
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ request.path }}?rss{% if not public %}&api_key={{ request.user.api_key.key }}{% endif %}" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<article class="group {% if detail %}detail{% endif %}">
|
<article class="group {% if detail %}detail{% endif %}">
|
||||||
<div class="gutter">
|
<div class="gutter">
|
||||||
<a href="{{ snipt.get_full_absolute_url }}">
|
<a href="{{ snipt.get_full_absolute_url }}" {% if detail %}class="detail"{% endif %}>
|
||||||
<time pubdate datetime="{{ snipt.publish_date|date:'c' }}">
|
<time pubdate datetime="{{ snipt.publish_date|date:'c' }}">
|
||||||
<span class="id">
|
<span class="id">
|
||||||
#{{ snipt.id }}
|
#{{ snipt.id }}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -260,52 +260,88 @@ article {
|
||||||
|
|
||||||
div.gutter {
|
div.gutter {
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
display: block;
|
||||||
|
height: 20px;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
time {
|
time {
|
||||||
background: #FFF;
|
background: #F9F9F9;
|
||||||
border: 1px solid #EAEAEA;
|
border: 1px solid #EAEAEA;
|
||||||
display: block;
|
display: inline-block;
|
||||||
margin-top: -14px;
|
height: 20px;
|
||||||
|
margin-top: 4px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 51;
|
width: 20px;
|
||||||
@include border-radius(3px);
|
z-index: 49;
|
||||||
|
@include border-radius(20px);
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: block;
|
display: none;
|
||||||
text-align: center;
|
}
|
||||||
|
}
|
||||||
|
&:hover, &.detail {
|
||||||
|
height: auto;
|
||||||
|
text-decoration: none;
|
||||||
|
width: auto;
|
||||||
|
|
||||||
&.id {
|
&:before {
|
||||||
background: #F9F9F9;
|
display: none;
|
||||||
border-bottom: 1px solid #EAEAEA;
|
}
|
||||||
color: #CCC;
|
time {
|
||||||
font: normal 11px $Helvetica;
|
background: #FFF;
|
||||||
padding: 2px 0;
|
border: 1px solid #EAEAEA;
|
||||||
|
display: block;
|
||||||
|
height: auto;
|
||||||
|
margin-top: -14px;
|
||||||
|
position: relative;
|
||||||
|
width: auto;
|
||||||
|
z-index: 51;
|
||||||
|
@include border-radius(3px);
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
&.id {
|
||||||
|
background: #F9F9F9;
|
||||||
|
border-bottom: 1px solid #EAEAEA;
|
||||||
|
color: #CCC;
|
||||||
|
font: normal 11px $Helvetica;
|
||||||
|
padding: 2px 0;
|
||||||
|
}
|
||||||
|
&.mon-day {
|
||||||
|
color: #999;
|
||||||
|
font: normal 17px $Helvetica;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
padding-top: 25px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
&.year {
|
||||||
|
color: #999;
|
||||||
|
font: normal 12px $Helvetica;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.mon-day {
|
&:after {
|
||||||
color: #999;
|
background: transparent url('/static/images/date-arrow.gif') top left no-repeat;
|
||||||
font: normal 17px $Helvetica;
|
content: "";
|
||||||
letter-spacing: -1px;
|
display: block;
|
||||||
padding-top: 9px;
|
height: 11px;
|
||||||
text-transform: uppercase;
|
position: absolute;
|
||||||
}
|
right: -6px;
|
||||||
&.year {
|
top: 22px;
|
||||||
color: #999;
|
width: 6px;
|
||||||
font: normal 12px $Helvetica;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
padding-bottom: 9px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:after {
|
}
|
||||||
background: transparent url('/static/images/date-arrow.gif') top left no-repeat;
|
&.detail {
|
||||||
content: "";
|
time {
|
||||||
display: block;
|
span.mon-day {
|
||||||
height: 11px;
|
padding-top: 10px;
|
||||||
position: absolute;
|
}
|
||||||
right: -6px;
|
|
||||||
top: 22px;
|
|
||||||
width: 6px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue