Elgg  Version 1.9
helpers.php
Go to the documentation of this file.
1 <?php
10 ?>
11 /* <style> /**/
12 
13 .clearfloat {
14  clear: both;
15 }
16 
17 <?php /* Need .elgg-page to be able to override .elgg-menu-hz > li {display:inline-block} and such */ ?>
18 .hidden,
19 .elgg-page .hidden {
20  display: none;
21 }
22 
23 .centered {
24  margin: 0 auto;
25 }
26 
27 .center {
28  text-align: center;
29 }
30 
31 .float {
32  float: left;
33 }
34 
35 .float-alt {
36  float: right;
37 }
38 
39 .link {
40  cursor: pointer;
41 }
42 
43 .elgg-discover .elgg-discoverable {
44  display: none;
45 }
46 
47 .elgg-discover:hover .elgg-discoverable {
48  display: block;
49 }
50 
51 .elgg-transition:hover,
52 .elgg-transition:focus,
53 :focus > .elgg-transition {
54  opacity: .7;
55 }
56 
57 /* ***************************************
58  BORDERS AND SEPARATORS
59 *************************************** */
60 .elgg-border-plain {
61  border: 1px solid #eeeeee;
62 }
63 .elgg-border-transition {
64  border: 1px solid #eeeeee;
65 }
66 .elgg-divide-top {
67  border-top: 1px solid #CCCCCC;
68 }
69 .elgg-divide-bottom {
70  border-bottom: 1px solid #CCCCCC;
71 }
72 .elgg-divide-left {
73  border-left: 1px solid #CCCCCC;
74 }
75 .elgg-divide-right {
76  border-right: 1px solid #CCCCCC;
77 }
78 
79 /* ***************************************
80  Spacing (from OOCSS)
81 *************************************** */
82 <?php
93 $none = '0';
94 $small = '5px';
95 $medium = '10px';
96 $large = '20px';
97 
98 echo <<<CSS
99 /* Padding */
100 .pan{padding:$none}
101 .prn, .phn{padding-right:$none}
102 .pln, .phn{padding-left:$none}
103 .ptn, .pvn{padding-top:$none}
104 .pbn, .pvn{padding-bottom:$none}
105 
106 .pas{padding:$small}
107 .prs, .phs{padding-right:$small}
108 .pls, .phs{padding-left:$small}
109 .pts, .pvs{padding-top:$small}
110 .pbs, .pvs{padding-bottom:$small}
111 
112 .pam{padding:$medium}
113 .prm, .phm{padding-right:$medium}
114 .plm, .phm{padding-left:$medium}
115 .ptm, .pvm{padding-top:$medium}
116 .pbm, .pvm{padding-bottom:$medium}
117 
118 .pal{padding:$large}
119 .prl, .phl{padding-right:$large}
120 .pll, .phl{padding-left:$large}
121 .ptl, .pvl{padding-top:$large}
122 .pbl, .pvl{padding-bottom:$large}
123 
124 /* Margin */
125 .man{margin:$none}
126 .mrn, .mhn{margin-right:$none}
127 .mln, .mhn{margin-left:$none}
128 .mtn, .mvn{margin-top:$none}
129 .mbn, .mvn{margin-bottom:$none}
130 
131 .mas{margin:$small}
132 .mrs, .mhs{margin-right:$small}
133 .mls, .mhs{margin-left:$small}
134 .mts, .mvs{margin-top:$small}
135 .mbs, .mvs{margin-bottom:$small}
136 
137 .mam{margin:$medium}
138 .mrm, .mhm{margin-right:$medium}
139 .mlm, .mhm{margin-left:$medium}
140 .mtm, .mvm{margin-top:$medium}
141 .mbm, .mvm{margin-bottom:$medium}
142 
143 .mal{margin:$large}
144 .mrl, .mhl{margin-right:$large}
145 .mll, .mhl{margin-left:$large}
146 .mtl, .mvl{margin-top:$large}
147 .mbl, .mvl{margin-bottom:$large}
148 CSS;
$medium
Definition: helpers.php:95
elgg input text
Definition: admin.php:478
margin right
Definition: admin.php:211
clearfix elgg elgg elgg elgg page elgg page elgg elgg elgg elgg col alt
Definition: admin.php:127
vertical align
Definition: admin.php:66
margin top
Definition: admin.php:192
clearfix elgg elgg elgg elgg page elgg page elgg elgg elgg elgg col elgg image block
Definition: admin.php:127
margin bottom
Definition: admin.php:38
$large
Definition: helpers.php:96
$small
Definition: helpers.php:94
ui datepicker calendar ui state hover
Definition: admin.php:622
elgg echo
Translates a string.
Definition: languages.js:43
$none
Spacing classes Should be used to modify the default spacing between objects (not between nodes of th...
Definition: helpers.php:93
margin left
Definition: admin.php:210