﻿/***********************
 * SP authoring styles.
 * Indepedent of .dccw-boxu. Some degree of copy-paste - must be kept in sync. This is by design.
 * TODO: Rethink when supporting nested WPs.
 * NOTE: The unusual ordering and important rules and not very specific selectors are deliberate.
 * It has to be this way because of the way SP rather crudely uses the first selector with a custom style as
 * the class in the ribbon's preview (aside: if you use descendent selectors it will mess this up).
 **********************/


/*======================
 .SP level: Authoring styles.
/*----------------------
 Anchors
 NOTE: SP does not apply a class to this element. This might cause problems with nested WPs.
 ----------------------*/
.ms-rtestate-field a:link,
.ms-rtestate-field a:visited {
    color: #fa4b2a !important;
}

.ms-rtestate-field a:hover {
    text-decoration: underline !important;
}

/*----------------------
 Paragraphs
 NOTE: SP does not apply a class to this element. This might cause problems with nested WPs.
 ----------------------*/
.ms-rtestate-field p { 
    font-size: 1em; /* 13px */
    line-height: 1.5;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    color: #333333;
}

/*----------------------
 Lists
 NOTE: SP does not apply a class to this element. This might cause problems with nested WPs.
 ----------------------*/
.ms-rtestate-field ul,
.ms-rtestate-field ol  {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 20px;
}

.ms-rtestate-field ul ul,
.ms-rtestate-field ol ol {
    padding-left: 40px;
    margin: 0;
} 

.ms-rtestate-field ul li,
.ms-rtestate-field ol li {
    line-height: 1.5;
}

@media screen and (max-width:560px) {
    .ms-rtestate-field ul ul,
    .ms-rtestate-field ol ol {
        padding-left: 20px;
    } 
}

.dccw-boxu.single-news-item-displayer ul,
.dccw-boxu.single-news-item-displayer ol  {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 20px;
}

.dccw-boxu.single-news-item-displayer ul ul,
.dccw-boxu.single-news-item-displayer ol ol {
    padding-left: 40px;
    margin: 0;
} 

.dccw-boxu.single-news-item-displayer ul li,
.dccw-boxu.single-news-item-displayer ol li {
    line-height: 1.5;
}

.dccw-boxu.single-news-item-displayer img {
    max-width: 100%;
}

@media screen and (max-width:560px) {
    .dccw-boxu.single-news-item-displayer ul ul,
    .dccw-boxu.single-news-item-displayer ol ol {
        padding-left: 20px;
    } 
}

/*----------------------
 Embed code. 
 This will help if authors decide to embed YouTube without our WP.
----------------------*/
.ms-rte-embedcode {
    position: relative;
    padding-bottom: 56.25%; /* 16/9 ratio */
    padding-top: 30px; /* IE6 workaround*/
    height: 0;
    overflow: hidden;
}

.ms-rte-embedcode iframe,
.ms-rte-embedcode object,
.ms-rte-embedcode embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ms-rte-embedil {
    display: block;
}


/*----------------------
 Image styles
 These are consistent across all themes 
 ----------------------*/
.dccw-authoringPosition-1 {
    -ms-name: "Left";
}

.dccw-authoringPosition-1,
.dccw .content .top img.dccw-authoringPosition-1 {
    float: left !important;
    margin: 20px 20px 20px 0 !important;
}

.dccw-authoringPosition-2 {
    -ms-name: "Right";
}

.dccw-authoringPosition-2,
.dccw .content .top img.dccw-authoringPosition-2 {
    float: right !important;
    margin: 20px 0 20px 20px !important;
}

.dccw-authoringPosition-1,
.dccw-authoringPosition-2,
.dccw .content .top img.dccw-authoringPosition-1,
.dccw .content .top img.dccw-authoringPosition-2 {
    width: 50% !important;
}

.dccw-authoringPosition-3 {
    -ms-name: "Full";
}

.dccw-authoringPosition-3,
.dccw .content .top img.dccw-authoringPosition-3 {
    width: 100% !important;
    margin: 20px 0 !important;
}

.dccw-authoringPosition-4 {
    -ms-name: "Original";
}

.dccw-authoringPosition-4,
.dccw .content .top img {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 5px 0 !important;
    max-width: 100%;
}

.dccw-authoringPosition-5 {
    -ms-name: "30% Left";
}

.dccw-authoringPosition-5,
.dccw .content .top img.dccw-authoringPosition-5 {
    float: left !important;
    margin: 0 20px 20px 0 !important;
    width: 30% !important;
    height: auto !important;
}

.dccw-authoringPosition-6 {
    -ms-name: "30% Right";
}

.dccw-authoringPosition-6,
.dccw .content .top img.dccw-authoringPosition-6 {
    float: right !important;
    margin: 0 0 20px 20px !important;
    width: 30% !important;
    height: auto !important;
}

.dccw-authoringPosition-7 {
    -ms-name: "15% Left";
}

.dccw-authoringPosition-7,
.dccw .content .top img.dccw-authoringPosition-7 {
    float: left !important;
    margin: 0 20px 20px 0 !important;
    width: 15% !important;
    height: auto !important;
}

.dccw-authoringPosition-8 {
    -ms-name: "15% Right";
}

.dccw-authoringPosition-8,
.dccw .content .top img.dccw-authoringPosition-8 {
    float: right !important;
    margin: 0 0 20px 20px !important;
    width: 15% !important;
    height: auto !important;
}

@media screen and (max-width: 480px) {
    .dccw-authoringPosition-1,
    .dccw-authoringPosition-2,
	.dccw-authoringPosition-6,
	.dccw-authoringPosition-5,
    .dccw-authoringPosition-7,
    .dccw-authoringPosition-8,
	.dccw .content .top img.dccw-authoringPosition-1,
	.dccw .content .top img.dccw-authoringPosition-2,
	.dccw .content .top img.dccw-authoringPosition-5,
	.dccw .content .top img.dccw-authoringPosition-6,
	.dccw .content .top img.dccw-authoringPosition-7,
	.dccw .content .top img.dccw-authoringPosition-8 {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/*----------------------
 Table styles
 NOTE: In some cases, dangerous assumption that all tables within a RTE are authoring tables.
 ----------------------*/
.ms-rtestate-field table th.valign-top,
.ms-rtestate-field table td.valign-top {
    vertical-align: top;
}

.ms-rtestate-field table th.valign-middle,
.ms-rtestate-field table td.valign-middle {
    vertical-align: middle;
}


.dccw-authoringTable-default {
    border-width: 0;
    border-style: none;
    border-collapse: collapse;
}

.dccw-authoringTable-default, 
.dccw-authoringTable-default > tbody > tr > td, 
.dccw-authoringTable-default > tbody > tr > th, 
td.dccw-authoringTable-default, 
th.dccw-authoringTable-default, 
.dccw-authoringtablecells {
    border: none;
}


/*----------------------
 Images (all clients get all image styles with the same names)
 ----------------------*/
.dccw-authoringPosition-1,
.dccw .content .top img.dccw-authoringPosition-1 {
    -ms-name: "Left";
    float: left !important;
    margin: 20px 20px 20px 0 !important;
}

.dccw-authoringPosition-2,
.dccw .content .top img.dccw-authoringPosition-2 {
    -ms-name: "Right";
    float: right !important;
    margin: 20px 0 20px 20px !important;
}

.dccw-authoringPosition-1,
.dccw-authoringPosition-2,
.dccw .content .top img.dccw-authoringPosition-1,
.dccw .content .top img.dccw-authoringPosition-2 {
    width: 50% !important;
}

.dccw-authoringPosition-3,
.dccw .content .top img.dccw-authoringPosition-3 {
    -ms-name: "Full";
    width: 100% !important;
    margin: 20px 0 !important;
}

.dccw-authoringPosition-4,
.dccw .content .top img {
    -ms-name: "Original";
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 5px 0 !important;
    max-width: 100%;
}

.dccw-authoringPosition-5,
.dccw .content .top img.dccw-authoringPosition-5 {
    -ms-name: "30% Left";
    float: left !important;
    margin: 0 20px 20px 0 !important;
    width: 30% !important;
    height: auto !important;
}

.dccw-authoringPosition-6,
.dccw .content .top img.dccw-authoringPosition-6 {
    -ms-name: "30% Right";
    float: right !important;
    margin: 0 0 20px 20px !important;
    width: 30% !important;
    height: auto !important;
}

.dccw-authoringPosition-7,
.dccw .content .top img.dccw-authoringPosition-7 {
    -ms-name: "15% Left";
    float: left !important;
    margin: 0 20px 20px 0 !important;
    width: 15% !important;
    height: auto !important;
}

.dccw-authoringPosition-8,
.dccw .content .top img.dccw-authoringPosition-8 {
    -ms-name: "15% Right";
    float: right !important;
    margin: 0 0 20px 20px !important;
    width: 15% !important;
    height: auto !important;
}

@media screen and (max-width: 480px) {
    .dccw-authoringPosition-1,
    .dccw-authoringPosition-2,
	.dccw-authoringPosition-6,
	.dccw-authoringPosition-5,
    .dccw-authoringPosition-7,
    .dccw-authoringPosition-8,
	.dccw .content .top img.dccw-authoringPosition-1,
	.dccw .content .top img.dccw-authoringPosition-2,
	.dccw .content .top img.dccw-authoringPosition-5,
	.dccw .content .top img.dccw-authoringPosition-6,
	.dccw .content .top img.dccw-authoringPosition-7,
	.dccw .content .top img.dccw-authoringPosition-8 {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/*----------------------
 Other custom styles
 ----------------------*/
td.dccw-authoringStyle-Highlight {
    display: table-cell;
}

img[class*=dccw-authoringStyle-Highlight] {
    padding: 15px;
}

 
/*Clear Float Style*/
.dccw-authoringStyle-Clear {
    -ms-name: "Clear";
    clear: both;
    height: 0;
    display: block;
    width: 100%;
}

.ms-rtestate-write .dccw-authoringStyle-Clear {
    height: 15px;
    background: pink;
}






/*======================
 .SP level: Ribbon customisation
======================*/
#Ribbon\.EditingTools\.CPEditTab\.Font\.FontColor-Small,
#Ribbon\.EditingTools\.CPEditTab\.Font\.FontBackgroundColor-Small,
#Ribbon\.EditingTools\.CPEditTab\.Font-Large-0-0,
#Ribbon\.EditingTools\.CPEditTab\.Font\.Fonts-Medium,
#Ribbon\.EditingTools\.CPEditTab\.Font\.FontSize-Medium,
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.LTR-Small,
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.RTL-Small,
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.AlignRight-Small,
#Ribbon\.EditingTools\.CPEditTab\.Paragraph\.AlignJustify-Small,
#Ribbon\.Image\.Image\.Renditions\.PickRendition-Small,
#Ribbon\.Image\.Image\.Renditions\.PickRendition-Large,
#Ribbon\.Image\.Image\.Styles,
#Ribbon\.Image\.Image\.Space,
#Ribbon\.Table\.Layout\.Properties-MediumTwoRow-0,
#Ribbon\.Table\.Layout\.Properties-MediumTwoRow-1,
#Ribbon\.Table\.Layout\.Properties-MediumTwoRow-2-1,
#Ribbon\.Table\.Layout\.Properties-MediumTwoRow-3-1,
#Ribbon\.Table\.Layout
#Ribbon\.Table\.Layout\.Summary,
#Ribbon\.Image\.Image\.Size {
    display: none;   
}