Styling of Lectures and Workshops show views

This commit is contained in:
Petko Bordjukov 2014-08-31 20:16:21 +03:00
parent ddc956f3ba
commit 2535429b85
3 changed files with 47 additions and 15 deletions

View File

@ -0,0 +1,36 @@
.lecture-title {
font-family: Arial,sans-serif;
font-size: 26px;
font-weight: bold;
line-height: 26px;
padding: 0px 0px 7px;
font-style: italic;
span.subtitle {
font-size: 18px;
font-style: italic;
color: #999;
}
}
.abstract, .description {
h3 {
font-family: Arial,sans-serif;
margin-top: 14px;
font-size: 21px;
font-style: italic;
font-weight: bold;
}
p {
text-indent: 10px;
margin-top: 0px;
margin-bottom: 0px;
padding: 0;
width: 600px;
}
p:last-of-type {
margin-bottom: 15px;
}
}

View File

@ -1,7 +1,5 @@
h1.entry-title Преглед на лекция
h2.lecture-title
= @lecture.title
=> @lecture.title
span.subtitle = @lecture.subtitle
.entry-meta
|
@ -17,4 +15,4 @@ section.description
= simple_format @lecture.description
- if current_user == @lecture.user
= link_to 'Редактирай', edit_lecture_path(@lecture)
= link_to 'Редактирай', edit_lecture_path(@lecture), class: 'btn-link'

View File

@ -1,5 +1,3 @@
h1.entry-title Преглед на уъркшоп
h2.workshop-title
= @workshop.title
span.subtitle = @workshop.subtitle
@ -17,4 +15,4 @@ section.description
= simple_format @workshop.description
- if current_user == @workshop.user
= link_to 'Редактирай', edit_workshop_path(@workshop)
= link_to 'Редактирай', edit_workshop_path(@workshop), class: 'btn-link'