Browse Source

Fixing CSS style

Julio Montoya 13 years ago
parent
commit
6af2f6d025
3 changed files with 152 additions and 149 deletions
  1. 146 4
      main/css/base.css
  2. 0 145
      main/css/base_chamilo.css
  3. 6 0
      main/inc/lib/template.lib.php

+ 146 - 4
main/css/base.css

@@ -2251,6 +2251,7 @@ input.maininput:focus {
 
 #course_tools .content {
     text-align:center;
+    margin-bottom: 20px;
 }
 
 .big_icon img {     
@@ -3559,6 +3560,93 @@ a:active{
     width:100%;
 }
 */
+
+
+/*****************************************************
+ *  THE NEW FORUM                        *
+ *****************************************************/
+/* **** FORUM CATEGORY **** */
+.forum_category {
+    background-color: #0066CC;
+    color: #fff;
+}
+.forum_category a {
+    color: #fff;
+}
+.forum_category_header {
+    background-color: #0066CC;
+    color: #fff;
+}
+tr.forum_category_header a {
+    color: #fff;
+}
+/* **** FORUM **** */
+.forum_header {
+    background-color: #EEF;
+}
+/* **** THREAD **** */
+.forum_threadheader {
+    color: #aaa;
+    background-color: #F7F7F7;
+}
+
+.forum-thread-header {
+    color: #000000;
+    background-color: #F7F7F7;
+    border-left: 1px solid #aaa;
+    border-right: 1px solid #aaa;
+    border-bottom: 1px solid #aaa;
+    border-top: 1px solid #aaa;
+}
+.forum-thread-body {
+    color: #000000;
+    background-color: #FFFFFF;
+    border-left: 1px solid #aaa;
+    border-right: 1px solid #aaa;
+    border-bottom: 1px solid #aaa;
+    border-top: 1px solid #aaa;
+}
+/* **** POST **** */
+.quote {
+    background-color: #a0e5fc;
+}
+
+.current {
+    font-weight: bold;
+}
+.structure {
+    /*border-bottom: 1px solid #666666;*/
+    font-weight: bold;
+    background-color: #F7F7F7;
+    height: 20px;
+}
+a.forum_group_link {
+    font-weight: lighter;
+    display:inline;
+}
+.forum_description {
+    color: #000;
+    font-weight: normal;
+    font-size: 11px;
+}
+.forum_description p{
+    font-size: 11px;
+}
+.forum_title {
+    color: #000;
+    font-size: 14px;
+}
+.forum_low_description {
+    color: #737780;
+    font-style: italic;
+    font-weight: normal;
+}
+.forum_attach_comment {
+    color: #737780;
+    font-style: italic;
+    font-weight: normal;
+}
+
 .forum_message_left {
     width: 150px;
     vertical-align: top;    
@@ -3566,10 +3654,7 @@ a:active{
     background-color: #F7F7F7;
 }
 
-.forum_message_left a {
-    float:left;
-    width:100%;
-}
+
                       
 .forum_message_left_2_be_approved {
     width: 150px;
@@ -3604,6 +3689,63 @@ a:active{
     vertical-align: top;
 }
 
+/*  New forum table */
+
+.forum_table_title {
+    border-collapse: collapse;
+    width: 100%;
+    padding: 5px;
+    border-left: 1px solid #ccc;
+    border-top: 1px solid #ccc;
+    border-right: 1px solid #ccc;
+    padding:5px;
+}
+
+.forum_table_title th {
+    padding-right: 12px;
+    /*border: 1px solid gray;*/
+    background-color: #E5EDF9;
+}
+.forum_table {
+    border-collapse: collapse;
+    width: 100%;
+    padding: 5px;
+    border: 1px solid #ccc;
+    margin-bottom:15px;
+}
+
+.forum_table .forum_head{
+    padding:5px;
+    text-align: left;
+    font-size:14px;
+}
+
+.forum_table th {
+    padding-right: 12px;
+    background-color: #E5EDF9;
+}
+.forum_table tr.row_odd {
+    background-color: #F2F2F2;
+}
+.forum_table tr.row_odd:hover, .data_table tr.row_even:hover {
+    background-color: #E5EDF9;
+}
+.forum_table tr.row_even {
+    background-color: #fff;
+}
+.forum_table td {
+    padding: 5px;
+    vertical-align: top;
+    border-bottom: 1px solid #ccc;
+    border-right: 1px dotted #e1e1e1;
+    border-left: 1px dotted #e1e1e1;
+    border-top: 1px solid #ccc;
+}
+.post {
+    border: 1px solid #ccc;
+    margin-bottom:5px;
+}
+
 /* User list */
 
 .blackboard_show {

+ 0 - 145
main/css/base_chamilo.css

@@ -963,91 +963,7 @@ div.system_announcement {
     font-color: #ccc;
     float:right;
 }
-/*****************************************************
- *  THE NEW FORUM                        *
- *****************************************************/
-/* **** FORUM CATEGORY **** */
-.forum_category {
-    background-color: #0066CC;
-    color: #fff;
-}
-.forum_category a {
-    color: #fff;
-}
-.forum_category_header {
-    background-color: #0066CC;
-    color: #fff;
-}
-tr.forum_category_header a {
-    color: #fff;
-}
-/* **** FORUM **** */
-.forum_header {
-    background-color: #EEF;
-}
-/* **** THREAD **** */
-.forum_threadheader {
-    color: #aaa;
-    background-color: #F7F7F7;
-}
-tr.forum_threadheader td {
-}
-.forum-thread-header {
-    color: #000000;
-    background-color: #F7F7F7;
-    border-left: 1px solid #aaa;
-    border-right: 1px solid #aaa;
-    border-bottom: 1px solid #aaa;
-    border-top: 1px solid #aaa;
-}
-.forum-thread-body {
-    color: #000000;
-    background-color: #FFFFFF;
-    border-left: 1px solid #aaa;
-    border-right: 1px solid #aaa;
-    border-bottom: 1px solid #aaa;
-    border-top: 1px solid #aaa;
-}
-/* **** POST **** */
-.quote {
-    background-color: #a0e5fc;
-}
 
-.current {
-    font-weight: bold;
-}
-.structure {
-    /*border-bottom: 1px solid #666666;*/
-    font-weight: bold;
-    background-color: #F7F7F7;
-    height: 20px;
-}
-a.forum_group_link {
-    font-weight: lighter;
-    display:inline;
-}
-.forum_description {
-    color: #000;
-    font-weight: normal;
-    font-size: 11px;
-}
-.forum_description p{
-    font-size: 11px;
-}
-.forum_title {
-    color: #000;
-    font-size: 14px;
-}
-.forum_low_description {
-    color: #737780;
-    font-style: italic;
-    font-weight: normal;
-}
-.forum_attach_comment {
-    color: #737780;
-    font-style: italic;
-    font-weight: normal;
-}
 /* **** BLOG **** */
 span.blog_title {
     font-size: 20px;
@@ -2349,67 +2265,6 @@ span.form_required  {
   /*background-color: #eeeeee; */
 }
 
-
-/*  New forum table */
-
-.forum_table_title {
-    border-collapse: collapse;
-    width: 100%;
-    padding: 5px;
-    border-left: 1px solid #ccc;
-    border-top: 1px solid #ccc;
-    border-right: 1px solid #ccc;
-    padding:5px;
-}
-
-.forum_table_title th {
-    padding-right: 12px;
-    /*border: 1px solid gray;*/
-    background-color: #E5EDF9;
-}
-
-
-.forum_table {
-    border-collapse: collapse;
-    width: 100%;
-    padding: 5px;
-    border: 1px solid #ccc;
-    margin-bottom:15px;
-}
-
-.forum_table .forum_head{
-    padding:5px;
-    text-align: left;
-    font-size:14px;
-}
-
-.forum_table th {
-    padding-right: 12px;
-    background-color: #E5EDF9;
-}
-.forum_table tr.row_odd {
-    background-color: #F2F2F2;
-}
-.forum_table tr.row_odd:hover, .data_table tr.row_even:hover {
-    background-color: #E5EDF9;
-}
-.forum_table tr.row_even {
-    background-color: #fff;
-}
-.forum_table td {
-    padding: 5px;
-    vertical-align: top;
-    border-bottom: 1px solid #ccc;
-    border-right: 1px dotted #e1e1e1;
-    border-left: 1px dotted #e1e1e1;
-    border-top: 1px solid #ccc;
-}
-
-.post {
-    border: 1px solid #ccc;
-    margin-bottom:5px;
-}
-
 /* Text resize icons in header */
 .resize_font { /* the canvas */
     margin: 0 5px 0 5px;

+ 6 - 0
main/inc/lib/template.lib.php

@@ -380,11 +380,17 @@ class Template extends Smarty {
 		}
         
         if (SHOW_TEXT_NEAR_ICONS == true) {
+            //hack in order to fix the actions buttons
             $css_file_to_string .= '<style>
+                
                 .td_actions a {
                     float:left;
                     width:100%;
                 }                
+                .forum_message_left a {
+                    float:left;
+                    width:100%;
+                }
                 </style>';
         }