- b2evolution CMS User Manual
- Developer Reference
- Technical Reference
- Common Helper CSS Classes
Common Helper CSS Classes
b2evolution includes some default CSS classes that can be applied to various Widgets and/or Short Tags in order to easily control some display aspects.
If these are not sufficient, you can also add your own classes.
For widgets
children-widgets-inlinecan be used on an "Embed Sub-Container" widget so that embedded widgets<div>s display inline instead of blocks.widget-no-bordercan be used on an individual widget in order to hide border, for example, in the sidebar containers.alternate-left-rightsee: https://skins.b2evolution.net/tabs-bootstrap-home#alternating-images-in-the-secondary-area
For images
raisedwill add a drop shadow on the image to make it look raised.noshadowremove the shadow in case there is one by default.borderwill add a 1 pixel dark grey border around the image.noborderwill remove the border in case there is one by default.squaredwill make the corners square in case they were rounded by default.roundedwill round the corners (4px radius)roundwill make the image round instead of square (radius 50%). Can be useful for logos, portraits, etc…
For [div:.class]
alternate-left-rightcan be used to alternate teaser images of content blocks left & right like this:[div:.alternate-left-right] [include:block1:.clearfix] [include:block2:.clearfix] [include:block3:.clearfix] [include:block4:.clearfix] [/div]
Bootstrap CSS classes
Most b2evolution skins are based on Bootstrap and therefore make the default Bootstrap CSS classes and components available.
The following may be especially useful:
Buttons
btnbtn-default,btn-primary,btn-success,btn-info,btn-warning,btn-danger,btn-linkbtn-lg,btn-sm,btn-xsbtn-blockactive,disabled
Images
img-rounded,img-circle,img-thumbnailpull-left,pull-right(andclearfixon the parent)
Text
text-muted,text-primary,text-success,text-info,text-warning,text-dangercenter-blocklabellabel-default,label-primary,label-success,label-info,label-warning,label-dangerbadge
For divs / [div:.class] ; can also apply to [include:...]
clearfixto avoid that floating images go beyond the end of the divbg-primary,bg-success,bg-info,bg-warning,bg-dangerjumbotronalertalert-success,alert-info,alert-warning,alert-danger
panelpanel-primary,panel-success,panel-info,panel-warning,panel-dangerpanel-heading,panel-title,panel-body,panel-footer
wellwell-lg,well-sm