Project

General

Profile

Revision 63f6d312

ID63f6d3125a97561556f8059acb3206a33b3ae590
Parent e5f17100
Child 464ee239, 24e1ad78

Added by Saskia Gennrich almost 3 years ago

ref #6432 more fine tuned inclusion of css.

CSS rules for admin/config/cdm_dataportal/settings are included
on all settings rule.
CSS rules for the debug block are attached to the debug block.

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
163 163

  
164 164
    $block['subject'] = ''; // no subject, title in content for having a defined element id
165 165
    // otherwise it would depend on the theme
166
    $block['content'] =
167
        '<h4 id="cdm-ws-debug-button">' . t('CDM Debug') . '</h4>'
168
          // cannot use theme_table() since table footer is not jet supported in D7
166
    $block['content'] = array(
167
      '#markup' => '<h4 id="cdm-ws-debug-button">' . t('CDM Debug') . '</h4>'
168
        // cannot use theme_table() since table footer is not jet supported in D7
169 169
        . '<div id="cdm-ws-debug-table-container"><table id="cdm-ws-debug-table">'
170 170
        . $header
171 171
        . '<tbody>' . join('', $rows) . '</tbody>'
172 172
        . $footer
173
        . '</table></div>';
174

  
173
        . '</table></div>',
174
      '#attached' => array(
175
        'css' => array(
176
          drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal_ws_debug.css'
177
        )
178
      )
179
    );
175 180
    return $block;
176 181
  }
177 182
}
modules/cdm_dataportal/cdm_dataportal.css
1

  
2 1
/**
3 2
 * ======= General styles =======
4 3
 *
......
7 6
 * See also http://groups.drupal.org/node/6355.
8 7
 */
9 8

  
10

  
11 9
.superscript {
12 10
    vertical-align: super;
13 11
    font-size: 80%;
14 12
    line-height: 100%;
15 13
}
16 14

  
17
#block-cdm-api-cdm-ws-debug {
18
  background-color: #373737;
19
  color: #fff;
20
  border: 1px solid #fff;
21
  -moz-box-shadow: inset 0 0 3px 2px #fff;
22
  -webkit-box-shadow: inset 0 0 3px 2px #fff;
23
  box-shadow: inset 0 0 3px 2px #fff;
24
}
25

  
26
#cdm-ws-debug-table-container {
27
  display: none;
28
}
29

  
30
#block-cdm-api-cdm-ws-debug h4 {
31
  margin: 3px;
32
  padding: 0;
33
}
34

  
35 15
#block-cdm-dataportal-back-to-search-results {
36 16
  float: right;
37 17
}
38 18

  
39
#cdm-ws-debug-table {
40
  width: 100%;
41
}
42

  
43
#cdm-ws-debug-table code {
44
  font-weight: normal;
45
}
46

  
47
#cdm-ws-debug-table td.data_links a {
48
  color: #999;
49
}
50
#cdm-ws-debug-table tr.valid td.data_links a {
51
  color: #1bdf00;
52
}
53
#cdm-ws-debug-table tr.invalid td.data_links a {
54
  color: #f3000a;
55
}
56
#cdm-ws-debug-table tr.cacheL1, #cdm-ws-debug-table tr.cacheL2 {
57
  color: #999;
58
}
59
#cdm-ws-debug-table .ws_uri {
60
  width: 50%;
61
}
62

  
63 19
/*
64 20
 * when nesting description lists the inner dl should
65 21
 * not have a margin at top and bottom, but should be
......
649 605
    color: #8a918e;
650 606
}
651 607

  
652

  
653 608
#block-cdm-dataportal-taxonomic-children  ul {
654 609
    max-height: 20em;
655 610
    -moz-column-count: 3;
......
661 616
    background: none;
662 617
}
663 618

  
664

  
665 619
.messages .cdm\:Taxon { /* taxa in warning box */
666 620
    font-weight: bold;
667 621
}
......
718 672
  padding: 0 0 0.25em 1em;
719 673
}
720 674

  
721
/**
722
 * ======= Settings forms =======
723
 */
724

  
725
/* Do not display the descriptions indented in the setup forms, D5 style. */
726
#cdm-settings-general .form-type-radio .description,
727
#cdm-settings-general .form-type-checkbox .description,
728
#cdm-settings-geo .form-type-radio .description,
729
#cdm-settings-geo .form-type-checkbox .description,
730
#cdm-settings-layout .form-type-radio .description,
731
#cdm-settings-layout .form-type-checkbox .description,
732
#cdm-settings-layout-taxon .form-type-radio .description,
733
#cdm-settings-layout-taxon .form-type-checkbox .description,
734
#cdm-settings-layout-search .form-type-radio .description,
735
#cdm-settings-layout-search .form-type-checkbox .description,
736
#cdm-settings-layout-media .form-type-radio .description,
737
#cdm-settings-layout-media .form-type-checkbox .description,
738
#cdm-settings-cache .form-type-radio .description,
739
#cdm-settings-cache .form-type-checkbox .description,
740
#cdm-settings-layout-media .form-type-radio .description,
741
#cdm-settings-layout-media .form-type-checkbox .description,
742
#ext-links-admin .form-type-radio .description,
743
#ext-links-admin .form-type-checkbox .description,
744
#cdm-mediauri-rule-add .form-type-radio .description,
745
#cdm-mediauri-rule-add .form-type-checkbox .description {
746
  margin-left: 0;
747
}
748
/* Align checkboxes and radios as D5 style. */
749
#cdm-settings-general input.form-checkbox, input.form-radio,
750
#cdm-settings-geo input.form-checkbox, input.form-radio,
751
#cdm-settings-layout input.form-checkbox, input.form-radio,
752
#cdm-settings-layout-taxon input.form-checkbox, input.form-radio,
753
#cdm-settings-layout-search input.form-checkbox, input.form-radio,
754
#cdm-settings-layout-media input.form-checkbox, input.form-radio,
755
#cdm-settings-cache input.form-checkbox, input.form-radio,
756
#cdm-settings-layout-media input.form-checkbox, input.form-radio,
757
#ext-links-admin input.form-checkbox, input.form-radio,
758
#cdm-mediauri-rule-add input.form-checkbox, input.form-radio {
759
  vertical-align: baseline;
760
}
761

  
762
/* Custom style for the more-help links on the cdm settings pages. */
763
.cdm-dataportal-settings-more-help-link {
764
  font-size: 0.85em;
765
}
766
.cdm-dataportal-settings-more-help-link a {
767
  background-image: none;
768
  padding: 0;
769
}
770
#block-system-help .content {
771
  margin: 0;
772
}
773

  
774
#cdm-settings-geo .map_info{
775
    font-size: 95%;
776
    font-family: monospace;
777
}
778

  
779
#cdm-settings-geo .map-extent-bbox .degree-value {
780
    color: forestgreen;
781
}
782

  
783
#cdm-settings-geo .baselayer-extent-bbox .degree-value {
784
    color: royalblue;
785
}
786

  
787
.fieldset-float {
788
    float: left;
789
}
790

  
791 675
/*
792 676
 * ======= specimens =======
793 677
 */
modules/cdm_dataportal/cdm_dataportal.module
641 641
    drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal.css');
642 642
    // drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/cdm_dataportal_print.css', 'print');
643 643
    drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal_screen.css', array('type' => 'screen'));
644
  } else {
645
    drupal_add_css(drupal_get_path('module', 'cdm_dataportal') . '/cdm_dataportal_settings.css');
644 646
  }
645 647

  
646 648
  if(variable_get('cdm_debug_mode', FALSE)){
modules/cdm_dataportal/cdm_dataportal_settings.css
1

  
2
/**
3
 * ======= Settings forms =======
4
 */
5

  
6
/* Do not display the descriptions indented in the setup forms, D5 style. */
7
#cdm-settings-general .form-type-radio .description,
8
#cdm-settings-general .form-type-checkbox .description,
9
#cdm-settings-geo .form-type-radio .description,
10
#cdm-settings-geo .form-type-checkbox .description,
11
#cdm-settings-layout .form-type-radio .description,
12
#cdm-settings-layout .form-type-checkbox .description,
13
#cdm-settings-layout-taxon .form-type-radio .description,
14
#cdm-settings-layout-taxon .form-type-checkbox .description,
15
#cdm-settings-layout-search .form-type-radio .description,
16
#cdm-settings-layout-search .form-type-checkbox .description,
17
#cdm-settings-layout-media .form-type-radio .description,
18
#cdm-settings-layout-media .form-type-checkbox .description,
19
#cdm-settings-cache .form-type-radio .description,
20
#cdm-settings-cache .form-type-checkbox .description,
21
#cdm-settings-layout-media .form-type-radio .description,
22
#cdm-settings-layout-media .form-type-checkbox .description,
23
#ext-links-admin .form-type-radio .description,
24
#ext-links-admin .form-type-checkbox .description,
25
#cdm-mediauri-rule-add .form-type-radio .description,
26
#cdm-mediauri-rule-add .form-type-checkbox .description {
27
    margin-left: 0;
28
}
29
/* Align checkboxes and radios as D5 style. */
30
#cdm-settings-general input.form-checkbox, input.form-radio,
31
#cdm-settings-geo input.form-checkbox, input.form-radio,
32
#cdm-settings-layout input.form-checkbox, input.form-radio,
33
#cdm-settings-layout-taxon input.form-checkbox, input.form-radio,
34
#cdm-settings-layout-search input.form-checkbox, input.form-radio,
35
#cdm-settings-layout-media input.form-checkbox, input.form-radio,
36
#cdm-settings-cache input.form-checkbox, input.form-radio,
37
#cdm-settings-layout-media input.form-checkbox, input.form-radio,
38
#ext-links-admin input.form-checkbox, input.form-radio,
39
#cdm-mediauri-rule-add input.form-checkbox, input.form-radio {
40
    vertical-align: baseline;
41
}
42

  
43
/* Custom style for the more-help links on the cdm settings pages. */
44
.cdm-dataportal-settings-more-help-link {
45
    font-size: 0.85em;
46
}
47
.cdm-dataportal-settings-more-help-link a {
48
    background-image: none;
49
    padding: 0;
50
}
51
#block-system-help .content {
52
    margin: 0;
53
}
54

  
55
#cdm-settings-geo .map_info{
56
    font-size: 95%;
57
    font-family: monospace;
58
}
59

  
60
#cdm-settings-geo .map-extent-bbox .degree-value {
61
    color: forestgreen;
62
}
63

  
64
#cdm-settings-geo .baselayer-extent-bbox .degree-value {
65
    color: royalblue;
66
}
67

  
68
.fieldset-float {
69
    float: left;
70
}
modules/cdm_dataportal/cdm_dataportal_ws_debug.css
1
#block-cdm-api-cdm-ws-debug {
2
    background-color: #373737;
3
    color: #fff;
4
    border: 1px solid #fff;
5
    -moz-box-shadow: inset 0 0 3px 2px #fff;
6
    -webkit-box-shadow: inset 0 0 3px 2px #fff;
7
    box-shadow: inset 0 0 3px 2px #fff;
8
}
9

  
10
#cdm-ws-debug-table-container {
11
    display: none;
12
}
13

  
14
#block-cdm-api-cdm-ws-debug h4 {
15
    margin: 3px;
16
    padding: 0;
17
}
18

  
19
#cdm-ws-debug-table {
20
    width: 100%;
21
}
22

  
23
#cdm-ws-debug-table code {
24
    font-weight: normal;
25
}
26

  
27
#cdm-ws-debug-table td.data_links a {
28
    color: #999;
29
}
30
#cdm-ws-debug-table tr.valid td.data_links a {
31
    color: #1bdf00;
32
}
33
#cdm-ws-debug-table tr.invalid td.data_links a {
34
    color: #f3000a;
35
}
36
#cdm-ws-debug-table tr.cacheL1, #cdm-ws-debug-table tr.cacheL2 {
37
    color: #999;
38
}
39
#cdm-ws-debug-table .ws_uri {
40
    width: 50%;
41
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)