«Кутузовская Панорама» — газета администрации сельского поселения Кутузовское — Типографика

All HTML headings,

through

are available.

Built with Less

The typographic scale is based on two LESS variables in variables.less: @baseFontSize and @baseLineHeight. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.

Bootstrap’s global default font-size is 14px, with a line-height of 1.7em. This is applied to the and all paragraphs. In addition,

(paragraphs) receive a bottom margin of half their line-height (9px by default).

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.


...

Lead body copy

Make a paragraph stand out by adding .lead.

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.


...

Make use of HTML’s default emphasis tags with lightweight styles.

For emphasizing a snippet of text with stress

The following snippet of text is rendered as italicized text.

rendered as italicized text

For emphasizing a snippet of text with important

The following snippet of text is rendered as bold text.

rendered as bold text

For de-emphasizing inline or blocks of text, use the small tag.

This line of text is meant to be treated as fine print.


This line of text is meant to be treated as fine print.

Note: Feel free to use and in HTML5. is meant to highlight words or phrases without conveying additional importance while is mostly for voice, technical terms, etc.

Notice Styles

Use the

tag with .success, .warning, .info or .error classes.

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.


...

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.


...

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.


...

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.


...


Stylized implementation of HTML’s element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a title attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.

For expanded text on long hover of an abbreviation, include the title attribute.

An abbreviation of the word attribute is attr.

attr

Add .initialism to an abbreviation for a slightly smaller font-size.

HTML is the best thing since sliced bread.

attr

Stylized implementation of HTML’s element to present contact information for the nearest ancestor or the entire body of work.

Preserve formatting by ending all lines with
.



  Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890 Full Name
[email protected]


Blockquotes

For quoting blocks of content from another source within your document.

Default blockquote

Wrap

around any HTML as the quote. For straight quotes we recommend a

.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Blockquote options

Style and content changes for simple variations on a standard blockquote.

Add tag for identifying the source. Wrap the name of the source work in .

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous Source Title

 

Use .pull-right for a floated, right-aligned blockquote.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title

 


This will display a list of items in which the order does not explicitly matter.

  • Lorem ipsum dolor sit amet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Eget porttitor lorem

This will display a list of items in which the order does explicitly matter (numbered list).

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa
  4. Facilisis in pretium nisl aliquet
  5. Nulla volutpat aliquam velit
  6. Faucibus porta lacus fringilla vel
  7. Aenean sit amet erat nunc
  8. Eget porttitor lorem

This will display a list of items with no list-style or additional left padding.

  • Lorem ipsum dolor sit amet
  • Nulla volutpat aliquam velit
    • Phasellus iaculis neque
    • Purus sodales ultricies
    • Vestibulum laoreet porttitor sem
    • Ac tristique libero volutpat at
  • Faucibus porta lacus fringilla vel
  • Eget porttitor lorem

A list of terms with their associated descriptions.

Description lists A description list is perfect for defining terms. Euismod Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit. Donec id elit non mi porta gravida at eget metus. Malesuada porta Etiam porta sem malesuada magna mollis euismod.


  ...
  ...


Note: Horizontal description lists will truncate terms that are too long to fit in the left column fix text-overflow. In narrower viewports, they will change to the default stacked layout.

Make terms and descriptions in line up side-by-side.

Description lists A description list is perfect for defining terms. Euismod Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit. Donec id elit non mi porta gravida at eget metus. Malesuada porta Etiam porta sem malesuada magna mollis euismod. Felis euismod semper eget lacinia Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.


  ...
  ...

Wrap inline snippets of code with .

For example, should be wrapped as inline.

For example,  should be wrapped as inline.

Note: Be sure to keep code within

 tags as close to the left as possible; it will render all tabs.


You may optionally add the .pre-scrollable class which will set a max-height of 350px and provide a y-axis scrollbar.


Use
 for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.


Sample text here...





To add colored syntax highlight to the
 tag, then use the .prettyprint class or the .prettyprint linenums class.


    
    
      
      
    
  
  



For basic styling—light padding and only horizontal dividers—add the base class .table to any

  
    
      
      
    
  
  

  <p>Sample text here...</p>

.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Optional classes

Add any of the follow classes to the .table base class.

Adds zebra-striping to any table row within the via the :nth-child CSS selector (not available in IE7-IE8).

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

.table-hover

Enable a hover state on table rows within a .

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

Add borders and rounded corners to the table.

# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter

.table-condensed

Makes tables more compact by cutting cell padding in half.

# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter


Optional row classes

Use contextual classes to color table rows.

Class Description
.success Indicates a successful or positive action.
.error Indicates a dangerous or potentially negative action.
.warning Indicates a warning that might need attention.
.info Used as an alternative to the default styles.
# Product Payment Taken Status
1 TB — Monthly 01/04/2012 Approved
2 TB — Monthly 02/04/2012 Declined
3 TB — Monthly 03/04/2012 Pending
4 TB — Monthly 04/04/2012 Call in to confirm
...
  

Supported table markup

List of supported table HTML elements and how they should be used.

1 TB — Monthly 01/04/2012 Approved
Tag Description
) to label table columns) in the body of the table

Wrapping element for displaying data in a tabular format
Container element for table header rows (
Container element for table rows (
Container element for a set of table cells ( or ) that appears on a single row
Default table cell
Special table cell for column (or row, depending on scope and placement) labels
Must be used within a
Description or summary of what the table holds, especially useful for screen readers

Individual form controls receive styling, but without any required base class on the or large changes in markup. Results in stacked, left-aligned labels on top of form controls.

  Legend
  Label name
  
  Example block-level help text here.
  
     Check me out
  
  Submit

Optional layouts

Included with Bootstrap are three optional form layouts for common use cases.

Search form

Add .form-search to the form and .search-query to the for an extra-rounded text input.

  
  Search

Inline form

Add .form-inline for left-aligned labels and inline-block controls for a compact layout.

  
  
  
     Remember me
  
  Sign in

Horizontal form

Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:

  • Add .form-horizontal to the form
  • Wrap labels and controls in .control-group
  • Add .control-label to the label
  • Wrap any associated controls in .controls for proper alignment
  
    Email
    
      
    
  
  
    Password
    
      
    
  
  
    
      
         Remember me
      
      Sign in
    
  

Examples of standard form controls supported in an example form layout.

Inputs

Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.

Requires the use of a specified type at all times.

Textarea

Form control which supports multiple lines of text. Change row attribute as necessary.

Checkboxes and radios

Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.

Default (stacked)

  
  Option one is this and that—be sure to include why it's great



  
  Option one is this and that—be sure to include why it's great


  
  Option two can be something else and selecting it will deselect option one

Inline checkboxes

Add the .inline class to a series of checkboxes or radios for controls appear on the same line.

   1


   2


   3

Selects

Use the default option or specify a multiple="multiple" to show multiple options at once.

  1
  2
  3
  4
  5



  1
  2
  3
  4
  5

Adding on top of existing browser controls, Bootstrap includes other useful form components.

Prepended and appended inputs

Add text or buttons before or after any text-based input. Do note that select elements are not supported here.

Wrap an .add-on and an input with one of two classes to prepend or append text to an input.

  @


  .00

Search form

  
    
    Search
  
  
    Search
    
  

Use both classes and two instances of .add-on to prepend and append an input.

  $.00

Buttons instead of text

Instead of a with text, use a .btn to attach a button (or two) to an input.

  Go!



  SearchOptions

End a form with a group of actions (buttons). When placed within a .form-horizontal, the buttons will automatically indent to line up with the form controls.

  Save changes
  Cancel

Help text

Inline and block level support for help text that appears around form controls.

Inline help

Inline help text

Block help

A longer block of help text that breaks onto a new line and may extend beyond one line.

Use relative sizing classes like .input-large or match your inputs to the grid column sizes using .span* classes.

Relative sizing





Note: In future versions, we’ll be altering the use of these relative input classes to match our button sizes. For example, .input-large will increase the padding and font-size of an input.

Uneditable inputs

Present data in a form that’s not editable without using actual form markup.

Some value here

Form control states

Provide feedback to users or visitors with basic feedback states on form controls and labels.

We remove the default outline styles on some form controls and apply a box-shadow in its place for :focus.

Add the disabled attribute on an input to prevent user input and trigger a slightly different look.

Validation states

Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding .control-group.

  Input with warning
  
    
    Something may have gone wrong
  


  Input with error
  
    
    Please correct the error
  


  Input with info
  
    
    Username is taken
  


  Input with success
  
    
    Woohoo!
  

Button styles can be applied to anything with the .btn class applied. However, typically you’ll want to apply these to only and elements for the best rendering.

Button class=»» Description
btn Standard gray button with gradient
btn btn-primary Provides extra visual weight and identifies the primary action in a set of buttons
btn btn-info Used as an alternative to the default styles
btn btn-success Indicates a successful or positive action
btn btn-warning Indicates caution should be taken with this action
btn btn-danger Indicates a dangerous or potentially negative action
btn btn-inverse Alternate dark gray button, not tied to a semantic action or use
btn btn-link Deemphasize a button by making it look like a link while maintaining button behavior

Cross browser compatibility

IE9 doesn’t crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled button elements, rendering text gray with a nasty text-shadow that we cannot fix.

Button sizes

Fancy larger or smaller buttons? Add .btn-large, .btn-small, or .btn-mini for additional sizes.


Large button Large button
Default button Default button
Small button Small button
Mini button Mini button

Create block level buttons—those that span the full width of a parent— by adding .btn-block.

Block level button
Block level button

Disabled state

Make buttons look unclickable by fading them back 50%.

Add the .disabled class to buttons.

Primary link Link

Primary link
Link

Note: We use .disabled as a utility class here, similar to the common .active class, so no prefix is required.

Add the disabled attribute to buttons.

Primary button
Button

One class, multiple tags

Use the .btn class on an , , or element.

Link
Button

As a best practice, try to match the element for your context to ensure matching cross-browser rendering. If you have an input, use an for your button.

Font Awesome is a pictographic language of web-related actions which delivers over 300 icons. The Font Awesome webfont is created by Dave Gandy and licensed under SIL OFL 1.1. The code is licensed under MIT License.

Add fa fa-ICON_NAME to any element.

 ...
 Download

You can find the full examples of usage at Font Awesome — http://fontawesome.io/icons/.

Прокрутить вверх