summaryrefslogtreecommitdiff
path: root/addons/website_blog/static/src/css
diff options
context:
space:
mode:
authorHitesh Trivedi <htr@openerp.com>2015-02-17 13:19:53 +0100
committerJérome Maes <jem@openerp.com>2015-03-17 09:09:27 +0100
commitf2987ea4126e7b7c27121bccf2aab3a60b229eb3 (patch)
tree84f51892bd1a3aecbb9497bd6d352c773496cf34 /addons/website_blog/static/src/css
parent5b9276bf29f0ec0173cfc0172188584418900b51 (diff)
[IMP] website_blog : onboarding. The cover image of a blog post is editable (opacity, color, size, ...). Add a new tour, views improvements and new default images
Diffstat (limited to 'addons/website_blog/static/src/css')
-rw-r--r--addons/website_blog/static/src/css/website_blog.css59
-rw-r--r--addons/website_blog/static/src/css/website_blog.sass57
2 files changed, 88 insertions, 28 deletions
diff --git a/addons/website_blog/static/src/css/website_blog.css b/addons/website_blog/static/src/css/website_blog.css
index a5de001e013..ffbab0908f2 100644
--- a/addons/website_blog/static/src/css/website_blog.css
+++ b/addons/website_blog/static/src/css/website_blog.css
@@ -15,6 +15,9 @@
margin-right: auto;
}
+.blog_content {
+ min-height: 350px !important;
+}
.blog_content a.oe_mail_expand:after {
content: " →";
}
@@ -32,43 +35,50 @@ div#blog_angle_down a:hover {
}
.cover {
- -webkit-background-size: cover;
- -moz-background-size: cover;
- -o-background-size: cover;
- background-size: cover;
- background-position: center;
- background-repeat: no-repeat;
- background-color: #546579;
color: white;
position: relative;
}
.cover .blog_title {
position: absolute;
+}
+.blog_title {
text-align: center;
+ margin-right: auto;
+ margin-left: auto;
top: 20%;
left: 0;
right: 0;
}
-.cover .blog_title h1 {
+.blog_title h1{
font-weight: bold;
}
-.cover_footer {
+.cover_full {
+ height: 100vh;
+}
+.cover_narrow {
+ height: 50vh;
+}
+.cover_footer_bg {
min-height: 350px;
height: 65vh;
- cursor: pointer;
}
/* mobile preview: for blog h1,h2 font-size and cover-footer height of image overlapas */
@media (max-width: 768px) {
- .cover h1 {
+ .blog_title h1 {
font-size: 26px;
}
- .cover h2 {
+ .blog_title h2 {
font-size: 20px;
}
-
- .cover_footer {
+ .cover_narrow {
+ height: 65vh;
+ }
+ #title .blog_title {
+ top: 10%;
+ }
+ .cover_footer_bg {
min-height: 280px;
height: 50vh;
}
@@ -164,10 +174,29 @@ div#blog_angle_down a:hover {
font-weight: normal;
}
-mark + .popover {
+mark + .popover, .cover_footer{
cursor: pointer;
}
.discussion_scroll_post {
overflow-x: auto;
}
+
+.blog_publish_btn {
+ padding-top: 16px;
+}
+
+.cover_footer_bg[style*="background-image: none;"] {
+ background-color: #B8B8B8;
+}
+
+#js_blogcover {
+ background-blend-mode: multiply;
+ -webkit-background-size: cover;
+ -moz-background-size: cover;
+ -o-background-size: cover;
+ background-size: cover;
+ background-position: center;
+ background-repeat: no-repeat;
+ height: 100%;
+}
diff --git a/addons/website_blog/static/src/css/website_blog.sass b/addons/website_blog/static/src/css/website_blog.sass
index e29995ad9b4..b090ef55fe5 100644
--- a/addons/website_blog/static/src/css/website_blog.sass
+++ b/addons/website_blog/static/src/css/website_blog.sass
@@ -15,6 +15,7 @@
margin-right: auto
.blog_content
+ min-height: 350px !important
a.oe_mail_expand:after
content: " →"
a.oe_mail_expand
@@ -29,39 +30,53 @@ div#blog_angle_down
text-decoration: none
.cover
- -webkit-background-size: cover
- -moz-background-size: cover
- -o-background-size: cover
- background-size: cover
- background-position: center
- background-repeat: no-repeat
- background-color: #546579
- color: #fff
+ color: white
position: relative
.blog_title
position: absolute
+
+.blog_title
text-align: center
top: 20%
+ margin-right: auto
+ margin-left: auto
left: 0
right: 0
h1
font-weight: bold
-.cover_footer
- min-height : 350px
+.cover_full
+ height: 100vh
+
+.cover_narrow
+ height: 50vh
+
+.cover_footer_bg
+ min-height: 350px
height: 65vh
- cursor: pointer
/* mobile preview: for blog h1,h2 font-size and cover-footer height of image overlapas */
@media (max-width: 768px)
- .cover
+ .blog_title
h1
font-size: 26px
+
+ .blog_title
h2
font-size: 20px
+
+ .cover_narrow
+ height: 65vh
+
+ #title
+ .blog_title
+ top: 10%
+
.cover_footer
min-height: 280px
height: 50vh
+
+ .cover_footer
.blog_title
top: 2%
@@ -145,8 +160,24 @@ div#blog_angle_down
overflow: auto
font-weight: normal
-mark + .popover
+mark + .popover, .cover_footer
cursor: pointer
.discussion_scroll_post
overflow-x: auto
+
+.blog_publish_btn
+ padding-top: 16px
+
+.cover_footer_bg[style*="background-image: none;"]
+ background-color: #B8B8B8
+
+#js_blogcover
+ background-blend-mode: multiply
+ -webkit-background-size: cover
+ -moz-background-size: cover
+ -o-background-size: cover
+ background-size: cover
+ background-position: center
+ background-repeat: no-repeat
+ height: 100%