Ì«Ñô³Ç¹ÙÍø

CSS Improvements

hero image

Quick Fix Classes

Primary Color Text

.primary = primary color red (for BC)

Remove Image Radius

.sq-corners = for when you need an image that has to be square for some reason, like a logo that might get cut off.

Default
logo cutoff with corner radius
.sq-corners

logo without corner radius

Unstyled Unordered Lists

For those lists where you don't want the bullets. Add the class .unstyled to the <ul> tag.

  • Item 1
  • Item 2
  • Item 3

Removed Margin

I have added CSS to the BC custom CSS to rectify some things that were not addressed by the iFactory designers. The first is that I removed the awkward margin from the top of the H2 when it is the first heading in the content. The extra margin is especially noticeable on pages that have side navigation.

Regular H3

This heading is the normal one.

H3 .remove-top-margin

I removed the margin so that there isn't so much white space. The class .remove-top-margin sets the top margin at 0.


placeholder

Clearfix

This is to fix it when you have a little content with a floating image and you want the next section to not wrap around the photo.

  • I added div tags <div></div> around the photo, h2, and this paragraph.
  • I added .clearfix to the div <div class="clearfix">.

This paragraph does not wrap around the photo.

Horizontal Rule

Adjusted the to match the bottom border used for components.


Adding the class .hr-wide will make your horizontal rule 100% width like the bottom border of the homepage components.


Well


Tables

Full-Width

Sometimes tables do not go the full-width of the page. Add the class .table-full-width to make them go all the way.

Table Captions

Captions are inherently centered in this design. Adding class .h2-.h6 will make them appear like headings. If you use <p></p> tags in the <caption></caption> tags will align the content to the left.

Example Table, no special classes
High School Course Ì«Ñô³Ç¹ÙÍø - Dual Enrollment Course
English 12HP ENGL B1A Expository Composition (3.0)
ENGL B1B Types of Literature (3.0)
US History AP HIST B17A History of the United States (3.0)
HIST B17B History of the United States since 1870 (3.0)
AP Euro HIST B4B European Civilization (3.0)
Basic Elements of Music MUSC B2 Basic Elements of Music (3.0)
Geology Honors GEOL B10 Introduction to Geology (3.0)
GEOL B10L Introduction to Geology Lab (1.0)

Table with .table-full-width

Note that the paragraph above has been styled with the class .h4. Styles h2-h6 have been added. Also note that using the paragraph tags in the caption tags will align left.

High School Course Ì«Ñô³Ç¹ÙÍø - Dual Enrollment Course
English 12HP ENGL B1A Expository Composition (3.0)
ENGL B1B Types of Literature (3.0)
US History AP HIST B17A History of the United States (3.0)
HIST B17B History of the United States since 1870 (3.0)
AP Euro HIST B4B European Civilization (3.0)
Basic Elements of Music MUSC B2 Basic Elements of Music (3.0)
Geology Honors GEOL B10 Introduction to Geology (3.0)
GEOL B10L Introduction to Geology Lab (1.0)
<table class="table-full-width">
<caption>
<p class="h4">Table with .tab.e-fullwidth</p>
<p>Note that…</p>
</caption>
<thead>
…
</table>

Embeds

Videos

.video-container

Video Container for responsive videos. Add div tags around the iframe with class .video-container. Remove the width and height atributes (and any other junk like border attributes).

Google Calendar

.google-cal-frame

For a Google calendar embed, add a dive with the class .google-cal-frame. Remove width and height (and any other attributes that will be a validation error) and remember to add a title.

Gooble Maps

.google-map-frame

For a google map, add a div with the class .google-map-frame and remove the width and height. Add a title attribute. This should display as a square.