Elgg  Version master
helpers.css.php
Go to the documentation of this file.
1 <?php
7 ?>
8 /* <style> /**/
9 
10 <?php /* Need .elgg-page to be able to override .elgg-menu-hz > li {display:inline-block} and such */ ?>
11 .hidden,
12 .elgg-page .hidden,
13 .elgg-menu > li.hidden {
14  display: none;
15 }
16 
17 .center,
18 .elgg-justify-center {
19  text-align: center;
20 }
21 
22 .elgg-justify-right {
23  text-align: right;
24 }
25 
26 .elgg-justify-left {
27  text-align: left;
28 }
29 
30 .float {
31  float: left;
32 }
33 
34 .float-alt {
35  float: right;
36 }
37 
38 .link {
39  cursor: pointer;
40 }
41 
42 .elgg-discover:not(:hover) .elgg-discoverable {
43  display: none;
44 }
45 
46 /* ***************************************
47  BORDERS AND SEPARATORS
48 *************************************** */
49 .elgg-border-plain {
50  border: 1px solid var(--elgg-border-color-soft);
51 }
52 .elgg-divide-top {
53  border-top: 1px solid var(--elgg-border-color-soft);
54 }
55 .elgg-divide-bottom {
56  border-bottom: 1px solid var(--elgg-border-color-soft);
57 }
58 .elgg-divide-left {
59  border-left: 1px solid var(--elgg-border-color-soft);
60 }
61 .elgg-divide-right {
62  border-right: 1px solid var(--elgg-border-color-soft);
63 }
64 
65 /* ***************************************
66  Spacing (from OOCSS)
67 *************************************** */
68 <?php
79 $none = '0';
80 $small = '5px';
81 $medium = '10px';
82 $large = '20px';
83 
84 ?>
85 /* Padding */
86 .pan{padding:<?= $none; ?>;}
87 .prn, .phn{padding-right:<?= $none; ?>;}
88 .pln, .phn{padding-left:<?= $none; ?>;}
89 .ptn, .pvn{padding-top:<?= $none; ?>;}
90 .pbn, .pvn{padding-bottom:<?= $none; ?>;}
91 
92 .pas{padding:<?= $small; ?>;}
93 .prs, .phs{padding-right:<?= $small; ?>;}
94 .pls, .phs{padding-left:<?= $small; ?>;}
95 .pts, .pvs{padding-top:<?= $small; ?>;}
96 .pbs, .pvs{padding-bottom:<?= $small; ?>;}
97 
98 .pam{padding:<?= $medium; ?>;}
99 .prm, .phm{padding-right:<?= $medium; ?>;}
100 .plm, .phm{padding-left:<?= $medium; ?>;}
101 .ptm, .pvm{padding-top:<?= $medium; ?>;}
102 .pbm, .pvm{padding-bottom:<?= $medium; ?>;}
103 
104 .pal{padding:<?= $large; ?>;}
105 .prl, .phl{padding-right:<?= $large; ?>;}
106 .pll, .phl{padding-left:<?= $large; ?>;}
107 .ptl, .pvl{padding-top:<?= $large; ?>;}
108 .pbl, .pvl{padding-bottom:<?= $large; ?>;}
109 
110 /* Margin */
111 .man{margin:<?= $none; ?>;}
112 .mrn, .mhn{margin-right:<?= $none; ?>;}
113 .mln, .mhn{margin-left:<?= $none; ?>;}
114 .mtn, .mvn{margin-top:<?= $none; ?>;}
115 .mbn, .mvn{margin-bottom:<?= $none; ?>;}
116 
117 .mas{margin:<?= $small; ?>;}
118 .mrs, .mhs{margin-right:<?= $small; ?>;}
119 .mls, .mhs{margin-left:<?= $small; ?>;}
120 .mts, .mvs{margin-top:<?= $small; ?>;}
121 .mbs, .mvs{margin-bottom:<?= $small; ?>;}
122 
123 .mam{margin:<?= $medium; ?>;}
124 .mrm, .mhm{margin-right:<?= $medium; ?>;}
125 .mlm, .mhm{margin-left:<?= $medium; ?>;}
126 .mtm, .mvm{margin-top:<?= $medium; ?>;}
127 .mbm, .mvm{margin-bottom:<?= $medium; ?>;}
128 
129 .mal{margin:<?= $large; ?>;}
130 .mrl, .mhl{margin-right:<?= $large; ?>;}
131 .mll, .mhl{margin-left:<?= $large; ?>;}
132 .mtl, .mvl{margin-top:<?= $large; ?>;}
133 .mbl, .mvl{margin-bottom:<?= $large; ?>;}
elgg()
Bootstrapping and helper procedural code available for use in Elgg core and plugins.
Definition: elgglib.php:12
$medium
Definition: helpers.css.php:81
$large
Definition: helpers.css.php:82
$none
Helpers CSS.
Definition: helpers.css.php:79
$small
Definition: helpers.css.php:80