Colors

Brand

$brand-primary#ff8800
$brand-secondary#385F74
$brand-tertiary#607D8B
$brand-fourt#0088cc
$brand-fifth#f06f31
$brand-info#3f8aeb
$brand-error#d02828
$brand-success#52cb7b
$brand-primary-lighter#ffa53d
$red-discounts#fe4d55
$green-discounts#ff8800

Grayscale

$black#000
$grayscale-90#333333
$grayscale-80#404040
$grayscale-70#5b5b5b
$grayscale-60#999999
$grayscale-50#cccccc
$grayscale-40#d5d5d5
$grayscale-30#ececec
$grayscale-20#f4f4f4
$grayscale-10#fafafa
$white#fff

Page Background

$page-container-bg

Content Box

In many cases you'll have box with border, usually it's the same colors throughout the site. In that case use the class content-box to add border and background color or the variables $content-box-bdr and $content-box-bg
NOTE: This only adds border and background color, not padding.

Stripped Background

Stripped background

Add a tag with the class stripped-container and in the same tag add stripped-even (first row light) or stripped-odd (second row light).

NOTE: This will only add background colors, not paddings.

Example with first row light

Example with stripped-even: first row light
Example with stripped-even: first row light
Example with stripped-even: first row light
Example with stripped-even: first row light

Example with second row light

Example with stripped-odd: second row light
Example with stripped-odd: second row light
Example with stripped-odd: second row light
Example with stripped-odd: second row light

Type

Paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas magna ipsum, posuere in nisi nec, efficitur luctus turpis. Praesent fermentum ligula faucibus, sollicitudin purus a, imperdiet elit. Vestibulum suscipit leo et risus mattis feugiat. Nullam pretium tincidunt nunc, ac molestie ex. Duis laoreet vitae est a maximus. Maecenas arcu libero, consequat pharetra nulla nec, aliquam sollicitudin dolor. Nulla at porta diam. Sed rutrum tincidunt augue, id rutrum neque consectetur ut. Aenean risus nibh, tincidunt ut justo sed, iaculis pellentesque ipsum. Integer consectetur nisi id leo mollis pulvinar. Sed ut vehicula purus. Fusce eget semper lorem.

Headings

H1

H2

H3

H4

H5
H6

Titles

Page title large, step title or module title

Page title medium or module sub-title

Links inside text

In general Primary Link it's used. No need to add the class.

In some cases you'll need this Secondary Link. It will be in the design.

Icons

To use this icons you only have to put the class in the tag.

Once in context modify font-size to change it's size and color for text color.

If you can't modify HTML, and want to change it from css, use it as pseudo class (before or after)

.my-icon:before{
  font-family: "trocafone-icon-font";
  content: '\21';
}
\21
icon-t-share
\22
icon-t-card
\e800
icon-t-arrow-thick-down
\e801
icon-t-arrow-thick-left
\e802
icon-t-arrow-thick-right
\e803
icon-t-arrow-thick-up
\e804
icon-t-arrow-thin-down
\e805
icon-t-arrow-thin-left
\e806
icon-t-arrow-thin-right
\e807
icon-t-arrow-thin-up
\e808
icon-t-battery
\e809
icon-t-body
\e80a
icon-t-camera
\e80b
icon-t-chat-help
\e80c
icon-t-check
\e80d
icon-t-chip
\e80e
icon-t-close-x
\e80f
icon-t-connectivity
\e810
icon-t-delivery-box
\e811
icon-t-digital-tv
\e812
icon-t-endurance
\e813
icon-t-gps
\e814
icon-t-memory
\e815
icon-t-minus
\e816
icon-t-money
\e817
icon-t-notification
\e818
icon-t-operating-system
\e819
icon-t-plus
\e81a
icon-t-power-button
\e81b
icon-t-processor
\e81c
icon-t-radio
\e81d
icon-t-screen
\e81e
icon-t-search-device
\e81f
icon-t-speaker-on
\e820
icon-t-troca-logo
\e821
icon-t-usb-connector
\e822
icon-t-video
\e828
icon-t-polygon
\e82b
icon-t-truck
\e82c
icon-t-barcode
\e82d
icon-t-paypal
\e82f
icon-t-question
\e830
icon-t-network
\e831
icon-t-user
\e84b
icon-t-box-full
\e84c
icon-t-details
\e84d
icon-t-diamond
\e84e
icon-t-information
\e84f
icon-t-star

Buttons

It can be <input>, <button> or <a>.

First choose style and add class:

Second choose size and add class:

When disabled add attribute or class:

Example

Forms

Input

Normal

Disabled

Readonly

Textarea

Normal

Disabled

Readonly

RadioButton

NOTE: This ↓ markup for Radio button it's used in many places at the moment. Eventually it will be deprecated.

Use this markup when you only need the radio button. The main tag can be anything, as long as you keep the class.

Use this markup when you need text. The main tag can be anything, as long as you keep the class.

Text

Checkbox

NOTE: This ↓ markup for Checkbox it's used in many places at the moment. Eventually it will be deprecated.

Use this markup when you only need the checkbox. The main tag can be anything, as long as you keep the class.

Use this markup when you need text. The main tag can be anything, as long as you keep the class.

Select

Single selection

Create a Select and fire an javascript event as described in the plugin page.

NOTE: For single selects only, in order for the placeholder value to appear, you must have a blank <option>
$(document).ready(function() {
    $("#e1").select2({
        placeholder: "Select a State"
    });
});

Multiple choice Select

Create a Select and fire an javascript event as described in the plugin page.

NOTE: For single selects only, in order for the placeholder value to appear, you must have a blank <option>
$(document).ready(function() {
    $("#e9").select2({
        placeholder: "Select a State"
    });
});

Row Revert

Revert the order of divs

NOTE: This uses FlexBox, in IE9 things are not reverted but they look ok.

This will only revert order, but since it uses flexbox it will also float them in most browsers. For IE9 add float or display inline to the childs you want to float.

Add class row-reverse-all to container div and classes row-flex row-reverse to it's childs

Left
Right
Left
Right
Left
Right
Left
Right

Add class row-reverse-interlaced to container div and classes row-flex row-reverse to it's childs

Left
Right
Left
Right
Left
Right
Left
Right

Message

Information message

This is an example

Helpers

Display

For the most used display we have a class with that property.

This are the clases available.

  • d-block
  • d-inline-block
  • d-inline
  • d-flex
  • d-table
  • d-table-cell
  • d-inherit
  • d-inline-flex
  • d-inline-table

Text align

Remember that text-align always should be apply to the parent of the item we want to center.

This are the clases available.

  • t-center
  • t-left
  • t-right
  • t-justify
  • t-inherit
  • t-initial
Center me!

Padding and margins

To add padding or margin to an element form the name of the class like this: property-side-amount

Property: p (padding) or m (margin)
Side: t (top), b (bottom), l (left), r (right)
Available sizes: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 75, 100

More helpers will be added in the future. Any ideas write an email to Product web team.