created blog.scss, added link to blogs/{user}

Later we will list all posts of a user under the route blogs/{user}
This commit is contained in:
Dario Bösch
2015-05-22 14:04:00 +02:00
parent 261aeca300
commit db77c4024d
7 changed files with 87 additions and 50 deletions

View File

@@ -0,0 +1,25 @@
ul.cms_blog_nodes {
padding: 0;
margin: 0;
}
ul.cms_blog_nodes li.cms_type_blog {
list-style: none;
display: block;
margin-top: 20px;
padding-bottom: 20px;
border-bottom: 1px dotted black;
}
ul.cms_blog_nodes li.cms_type_blog .blog_title a {
color: black;
font-size: 18px;
text-decoration: none;
display: block;
margin: 6px 0;
}
ul.cms_blog_nodes li.cms_type_blog .blog_title a:hover {
color: #999;
}
ul.cms_blog_nodes li.cms_type_blog .blog_list_summary a {
margin-top: 20px;
display: block;
}

View File

@@ -3,49 +3,15 @@ ul.cms-nodes {
padding: 3px 3px 3px 3px;
border: solid 1px #ccc;
}
.cms-nodes li.cms_type_page, .cms-nodes li.cms_type_blog {
ul.cms-nodes li {
border-top: dotted 1px #ccc;
}
li.cms_type_page a::before {
content: "[page] ";
}
.cms-nodes li.cms_type_blog a::before {
content: "[blog] ";
}
ul.cms-nodes li:first-child {
border-top: none;
}
.summary{
margin-top:20px;
font-weight:bold;
ul.cms-nodes li.cms_type_page a::before {
content: "[page] ";
}
.cms-blog-nodes{
padding:0;
margin:0;
ul.cms-nodes li.cms_type_blog a::before {
content: "[blog] ";
}
.cms-blog-nodes li{
list-style: none;
display: block;
margin-top:20px;
padding-bottom:20px;
border-bottom:1px dotted black;
}
.cms-blog-nodes li > a{
color:black;
font-size:18px;
text-decoration: none;
display:block;
margin:6px 0;
}
.cms-blog-nodes li > a:hover{
color:#999;
}
.blog_list_summary a{
margin-top:20px;
display:block;
}

View File

@@ -0,0 +1,30 @@
ul.cms_blog_nodes{
padding:0;
margin:0;
li.cms_type_blog{
list-style: none;
display: block;
margin-top:20px;
padding-bottom:20px;
border-bottom:1px dotted black;
.blog_title a{
color:black;
font-size:18px;
text-decoration: none;
display:block;
margin:6px 0;
&:hover{
color:#999;
}
}
.blog_list_summary a{
margin-top:20px;
display:block;
}
}
}

View File

@@ -1,14 +1,24 @@
ul.cms-nodes {
list-style-type: none;
padding: 3px 3px 3px 3px;
border: solid 1px #ccc;
}
li.cms_type_page {
a::before {
li{
border-top: dotted 1px #ccc;
&:first-child {
border-top: none;
}
}
li.cms_type_page a::before {
content: "[page] ";
}
border-top: dotted 1px #ccc;
&:first-child {
border-top: none;
li.cms_type_blog a::before {
content: "[blog] ";
}
}

View File

@@ -6,6 +6,10 @@
<!-- EWF CMS -->
<link rel="stylesheet" href="{$site_url/}/theme/css/style.css">
<link rel="stylesheet" href="{$site_url/}/theme/css/node.css">
<!-- CMS Blog Module -->
<link rel="stylesheet" href="{$site_url/}/theme/css/blog.css">
<script src="{$site_url/}/theme/js/jquery-1.10.2.min.js"></script>
<script src="{$site_url/}/theme/js/roc_auth.js"></script>