Skip to content

Commit

Permalink
removed the color stylesheets and gave instructions for adding them t…
Browse files Browse the repository at this point in the history
…o the layout view. Removed everything that had to do with color from the main simple_calendar.css
  • Loading branch information
PullMonkey committed Feb 13, 2009
1 parent e45234b commit ff1f042
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 57 deletions.
9 changes: 8 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,19 @@ Dependencies
This plugin only has 1 dependency which is the acts_as_taggable_on_steroids
plugin. This plugin is only needed if you want to be able to make your enties
taggable. To install this plugin do:
ruby script/plugin install http://svn.viney.net.nz/things/rails/plugins/acts_as_taggable_on_steroids
ruby script/plugin install http://svn.viney.net.nz/things/rails/plugins/acts_as_taggable_on_steroids

Environment.rb
==============
config.time_zone = 'UTC'

Layout
======
You only need to add the color stylesheet to your layout. As of now all we have
is red and gold. Just pick one and add it to your layout.

<%= stylesheet_link_tag 'simple_calendar_red' %>
<%= stylesheet_link_tag 'simple_calendar_gold' %>

Example of Calendar
===================
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_calendar.rhtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% %>
<%= javascript_include_tag 'nifty' %>
<%= stylesheet_link_tag 'niftyCorners', 'simple_calendar', 'simple_calendar_red' %>
<%= stylesheet_link_tag 'niftyCorners', 'simple_calendar' %>
<script type="text/javascript">
window.onload = function() {
if(!NiftyCheck())
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_small_calendar.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= javascript_include_tag 'nifty' %>
<%= stylesheet_link_tag 'niftyCorners', 'simple_calendar', 'simple_calendar_red' %>
<%= stylesheet_link_tag 'niftyCorners', 'simple_calendar' %>
<script type="text/javascript">
window.onload = function() {
if(!NiftyCheck())
Expand Down
54 changes: 0 additions & 54 deletions public/stylesheets/simple_calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ table.simple_calendar_border tr{
}

table.simple_calendar_border th{
color: white;
font-weight: bold;
font-size: 18px;
}
Expand Down Expand Up @@ -66,21 +65,12 @@ table.simple_calendar div.more_link {
margin-right: 15px;
padding-top: 0px;
font-size: 12px;
/*color: black;*/
}

table.simple_calendar div.more_link a:hover {
/*color: red;*/
}

a {
text-decoration: none;
}

a:hover {
background-color: transparent;
}

div.table_border {
width: 90%;
padding: 0px;
Expand All @@ -97,7 +87,6 @@ div#inner_calendar {

table.cal, table.day_cal {
border-collapse: collapse;
background-color: white;
}

table.cal {
Expand All @@ -112,15 +101,8 @@ table.cal th, table.day_cal th {
border: none;
}

table.day_cal th {
border:1px solid lightgrey;
}

table.cal td, table.day_cal td {
/*text-align: right;*/
vertical-align: top;
border:1px solid lightgrey;
color: black;
font-size: 16px;
}

Expand All @@ -142,19 +124,13 @@ tr.month{
}

table.hours {
background-color: white;
color: #333333;
border: 1px solid #333333;
border-collapse: collapse;
}

table.hours td {
border: 1px solid #333333;
}

table.hours th {
border: 1px solid #333333;
border-right: 3px double #333333;
font-size: 11px;
}

Expand All @@ -163,19 +139,10 @@ th.hour_header {
cursor: hand;
}

a.day_link, a:hover.day_link {
color: #333333;
background-color: transparent;
}
select.month option{
font-size: 18px;
}

a.day_next, a:hover.day_next {
color: #CCCCCC;
background-color: transparent;
}

.filler {
border: none !important;
}
Expand All @@ -194,43 +161,33 @@ a.day_next, a:hover.day_next {
}

#tabs li {
background: #979797;
float: left;
display:block;
border-right: 3px solid #fff;
padding:0;
width: 45px;
text-align: center;
}

#tabs li.unselected {
border-bottom: 3px solid #979797;
margin-bottom: 0;
}

#tabs li.selected {
/*background-color: #AA4444;
border-bottom: 3px solid #AA4444;*/
background-color: #CCCC00;
border-bottom: 3px solid #CCCC00;
color: white;
margin-bottom: 0;
}

#tabs a, #tabs a:link, #tabs a:visited, #tabs a:hover, #tabs a:active {
text-decoration:none;
cursor:pointer;
color:white;
display: block;
padding:0;
border: none;
}

#tabs a:hover {
color:#9ed3f8;
background-color: transparent;
border:none;
color: #333333;
}

#tabs img {
Expand Down Expand Up @@ -286,22 +243,11 @@ tr.top td{
border-bottom: none;
}

tr.bottom td{
border-top: 1px dotted lightgrey;
}

td.today{
background-color: #FFE4E1;
border: 3px double salmon;
}

li#tab {
background-color: #999999;
padding: 0px;
}

li#active_tab {
background-color: #CCCC00;
padding: 0px;
}

Expand Down

0 comments on commit ff1f042

Please sign in to comment.