Skip to content

Commit

Permalink
improve css a little
Browse files Browse the repository at this point in the history
  • Loading branch information
nevs committed Mar 31, 2010
1 parent 0e0688a commit d1ca0cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions rails/app/stylesheets/main.sass
Expand Up @@ -69,6 +69,13 @@ table
width: auto
border-collapse: separate

&.event-by-state

td
padding: 1em
+border-radius(5px)



caption
caption-side: top
Expand Down Expand Up @@ -207,6 +214,7 @@ select
margin: 0px 2px
background-color: #FF4040
padding: 3px
+border-radius(3px)

.user
color: black
Expand Down
2 changes: 1 addition & 1 deletion rails/app/views/pentabarf/index.rxml
Expand Up @@ -3,7 +3,7 @@ xml.div({:id=>'data'}) do
xml.fieldset do
xml.legend local('pentabarf::events_by_state')

xml.table do
xml.table({:class=>'event-by-state'}) do
xml.tr do
View_event_state_statistic.select({:conference_id=>@current_conference.conference_id}).each do | state |
xml.td(:class=>state.event_state,:style=>"vertical-align: top;") do
Expand Down
3 changes: 2 additions & 1 deletion rails/public/stylesheets/main.css
Expand Up @@ -60,6 +60,7 @@ fieldset.conflicts { background-color: lightsalmon; }
span.sortarrow { color: blue; }

table { border: 0px solid #90acc8; padding: 2px; margin: 2px 0 2px 0; width: auto; border-collapse: separate; }
table.event-by-state td { padding: 1em; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }

caption { caption-side: top; text-align: center; width: auto; }

Expand Down Expand Up @@ -104,7 +105,7 @@ textarea:focus { background-color: #FFFFD0; border-color: #90acc8; }
select { border: 1px solid #c8d8e8; color: #000; vertical-align: top; }

#activity { position: fixed; right: 0px; top: 0px; height: 20px; z-index: 5; font-size: smaller; }
#activity a { margin: 0px 2px; background-color: #FF4040; padding: 3px; }
#activity a { margin: 0px 2px; background-color: #FF4040; padding: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
#activity .user { color: black; margin-left: 2px; }
#activity .time { color: white; }
#activity :link, #activity :visited { color: black; }
Expand Down

0 comments on commit d1ca0cf

Please sign in to comment.