Browse Source

modification du CSS pour prendre en compte 80% de la fenetre pour la largeur des articles ;)

master
Victor 7 years ago
parent
commit
d3ec2ea36d
2 changed files with 36 additions and 36 deletions
  1. +35
    -35
      theme/static/css/main.css
  2. +1
    -1
      theme/templates/index.html

+ 35
- 35
theme/static/css/main.css View File

@ -43,7 +43,7 @@ h1, h2, h3, h4, h5, h6 {
}
h3, h4, h5, h6 { margin-top: .8em; }
hr { border: 2px solid #EEEEEE; }
/* Anchors */
@ -64,7 +64,7 @@ a:hover, a:active {
h1 a:hover {
background-color: inherit
}
/* Paragraphs */
div.line-block,
p { margin-top: 1em;
@ -124,7 +124,7 @@ div.note {
/* Tables */
table {margin: .5em auto 1.5em auto; width: 98%;}
/* Thead */
thead th {padding: .5em .4em; text-align: left;}
thead td {}
@ -132,14 +132,14 @@ table {margin: .5em auto 1.5em auto; width: 98%;}
/* Tbody */
tbody td {padding: .5em .4em;}
tbody th {}
tbody .alt td {}
tbody .alt th {}
/* Tfoot */
tfoot th {}
tfoot td {}
/* HTML5 tags */
header, section, footer,
aside, nav, article, figure {
@ -173,9 +173,9 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
color: #C74350;
text-shadow: none;
}
#banner h1 strong {font-size: 0.36em; font-weight: normal;}
/* Main Nav */
#banner nav {
background: #000305;
@ -186,15 +186,15 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
padding: 0;
text-align: center;
width: 800px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
#banner nav ul {list-style: none; margin: 0 auto; width: 800px;}
#banner nav li {float: left; display: inline; margin: 0;}
#banner nav a:link, #banner nav a:visited {
color: #fff;
display: inline-block;
@ -208,12 +208,12 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
color: #fff;
text-shadow: none !important;
}
#banner nav li:first-child a {
border-top-left-radius: 5px;
-moz-border-radius-topleft: 5px;
-webkit-border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px;
@ -227,8 +227,8 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
margin-bottom: 2em;
overflow: hidden;
padding: 20px;
width: 760px;
width: 80%;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
@ -256,8 +256,8 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
margin-bottom: 2em;
overflow: hidden;
padding: 20px 20px;
width: 760px;
width: 80%;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
@ -292,21 +292,21 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
float: left;
width: 615px;
}
#extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
/* Social */
#extras .social {
float: right;
width: 175px;
}
#extras div[class='social'] a {
background-repeat: no-repeat;
background-position: 3px 6px;
padding-left: 25px;
}
/* Icons */
.social a[href*='about.me'] {background-image: url('../images/icons/aboutme.png');}
.social a[href*='bitbucket.org'] {background-image: url('../images/icons/bitbucket.png');}
@ -345,8 +345,8 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;}
overflow: hidden;
padding: 20px;
text-align: left;
width: 760px;
width: 80%;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
@ -390,7 +390,7 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
/* Blog Index */
#posts-list {list-style: none; margin: 0;}
#posts-list .hentry {padding-left: 10px; position: relative;}
#posts-list footer {
left: 10px;
position: relative;
@ -398,7 +398,7 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
top: 0.5em;
width: 190px;
}
/* About the Author */
#about-author {
background: #f9f9f9;
@ -406,21 +406,21 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
font-style: normal;
margin: 2em 0;
padding: 10px 20px 15px 20px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
#about-author strong {
color: #C64350;
clear: both;
display: block;
font-size: 1.429em;
}
#about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
/* Comments */
#comments-list {list-style: none; margin: 0 1em;}
#comments-list blockquote {
@ -429,24 +429,24 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
font-style: normal;
margin: 0;
padding: 15px 20px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
#comments-list footer {color: #888; padding: .5em 1em 0 0; text-align: right;}
#comments-list li:nth-child(2n) blockquote {background: #F5f5f5;}
/* Add a Comment */
#add-comment label {clear: left; float: left; text-align: left; width: 150px;}
#add-comment input[type='text'],
#add-comment input[type='email'],
#add-comment input[type='url'] {float: left; width: 200px;}
#add-comment textarea {float: left; height: 150px; width: 495px;}
#add-comment p.req {clear: both; margin: 0 .5em 1em 0; text-align: right;}
#add-comment input[type='submit'] {float: right; margin: 0 .5em;}
#add-comment * {margin-bottom: .5em;}

+ 1
- 1
theme/templates/index.html View File

@ -5,7 +5,7 @@
{% for article in articles_page.object_list %}
{# First item #}
{% if loop.first and not articles_page.has_previous() %}
{% if loop.first and articles_page.has_previous() %}
<aside id="featured" class="body">
<article>
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>

Loading…
Cancel
Save