Project

General

Profile

Download (1.6 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * @file
3
 * Field Styling
4
 *
5
 * The Fences module allows site builders to pick the semeantic HTML5 element
6
 * for each field while editing the field's settings. There's no way a theme
7
 * can ever know which element to use for the fields on your site, so Zen
8
 * just uses lets Drupal core or Fences decide. Since you DO NOT want 3 wrapping
9
 * divs around every field (do you?), we highly recommend Fences.
10
 *
11
 * http://drupal.org/project/fences
12
 */
13

    
14

    
15
/*
16
 * Field wrappers when the Fences module is enabled.
17
 */
18

    
19
.field-label { /* The optional label for a field. */
20
}
21

    
22
.field-FIELDNAME { /* Underscores in field name are replaced with dashes. */
23
}
24

    
25
/*
26
 * If you don't use the Fences module, that's fine. Really. I think. Just use
27
 * these selectors instead:
28
 */
29

    
30
.field { /* Wrapper for any field. */
31
}
32

    
33
/*
34
 * Field types (Core)
35
 */
36

    
37
.field-type-text {
38
}
39

    
40
.field-type-text-long {
41
}
42

    
43
.field-type-text-with-summary {
44
}
45

    
46
.field-type-image {
47
}
48

    
49
.field-type-file {
50
}
51

    
52
.field-type-taxonomy-term-reference {
53
}
54

    
55
.field-type-number-integer {
56
}
57

    
58
.field-type-number-decimal {
59
}
60

    
61
.field-type-number-float {
62
}
63

    
64
.field-type-list-text {
65
}
66

    
67
.field-type-list-boolean {
68
}
69

    
70
.field-type-list-integer {
71
}
72

    
73
.field-type-list-float {
74
}
75

    
76
/*
77
 * Field types (Contrib)
78
 */
79

    
80
.field-type-datetime { /* Always use "datetime" when creating new CCK date fields. "date" and "datestamp" are legacy types. */
81
}
82

    
83
.field-type-node-reference {
84
}
85

    
86
.field-type-user-reference {
87
}
88

    
89
/*
90
 * Named fields
91
 */
92

    
93
.field-name-body {
94
}
95

    
96
.field-name-field-image {
97
}
98

    
99
.field-name-field-tags {
100
}
101

    
102
.field-name-field-FIELDNAME { /* Underscores in field name are replaced with dashes. */
103
}
(5-5/19)