metanorma/metanorma-m3aawg

View on GitHub
lib/isodoc/m3aawg/html/htmlstyle.scss

Summary

Maintainability
Test Coverage
/*
    0 CSS RESET
*/

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

/* Colors
Orange: #EE9C4F
Blue: #69C5DC
Drak Gray: #A5A8AB
Gray: #69C5DC
Light Gray: #F5F6F6
*/

@import 'base_style/all';

body {
    @include bodyStyle1($normalfontsize, 1.4em, #1d1d1d, #ffffff, 300);
}

#report {
    border-bottom: none;
}

main {
    margin: 0 3em 0 6em;
}
div.colophon {
    margin: 0 3em 0 6em;
}

#toc, #toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
    @include toc(#69C5DC, #69C5DC, #69C5DC);
    @include sidebarToc();

    .toc-active a {
        color: white;
    }

    ul {
        a:hover {
            color: white;
        }
    }
}

#toc > ul :is(.h1, .h2, .h3, .h4, .h5, .h6) {
   margin-top: 0;
   margin-bottom: 0;
   font-size: 100%;
 }

nav {
    @include sidebarNav(#f7f7f7, 323px, 45px);
}

#toggle {
    @include sidebarNavToggle(white, #69C5DC)
}

#myBtn {
    @include toTopBtn(white, #69C5DC);

    a.anchorjs-link {
        @include anchorLink(#485094)
    }
}

/*
    2. Responsive navigation layout
*/

@media screen and (min-width: 768px) {
    .container {
        padding-left: 360px;
    }

    .rule.toc {
        display: none;
    }

    h1.toc-contents {
        margin-top: 1em;
    }

    ul#toc-list, ul#toc-list > :is(.h1, .h2, .h3, .h4, .h5, .h6) {
        padding: 0;
        margin: 0;
    }

    nav {
        padding-left: 45px;
    }
}

div.figure {
    @include figureBlock();
    padding: 1.2em 1.2em 1.2em 2.2em;
    margin: 2em 0 2em -1em;
}

table div.figure {
  padding: 0;
  margin: 0;
}


/*
    Document types + stages
*/

.document-type-band {
    @include docBand($order: 2, $offset: 180px);

    .document-type {
        top: 20px;
    }
}

.document-stage-band {
    @include docBand(1, 150);
}

p.document-stage {
    @include docBandTitle(120);
}

#governance-band p.document-type {
    height: 230px !important;
}

p.document-stage {
    font-weight: 300;
    height: 160px;
}

#standard-band {
    background-color: #0ac442;
}

#standard {
    border-bottom: solid 3px #0ac442;
}

#governance {
    border-bottom: solid 3px #750697;
}

#governance-band {
    background-color: #750697;
}

#guide {
    border-bottom: solid 3px #48a0e7;
}

#guide-band {
    background-color: #48a0e7;
}

.coverpage-maturity {
    @include coverpageStageBlock();
}

#proposal {
    border-bottom: solid 3px #00BFFF;
}

#proposal-band {
    background-color: #00BFFF;
}

#working-draft {
    border-bottom: solid 3px #fda706;
}

#working-draft-band {
    background-color: #F22E15;
}

#committee-draft {
    border-bottom: solid 3px #fd06fd;
}

#committee-draft-band {
    background-color: #fd06fd;
}

#draft-standard {
    border-bottom: solid 3px #fdf906;
}

#draft-standard-band {
    background-color: #fdf906;
}

#final-draft {
    border-bottom: solid 3px #7e0d13;
}

#final-draft-band {
    background-color: #7e0d13;
}

#standard {
    border-bottom: solid 3px #69C5DC;
}

#published-band {
    background-color: #69C5DC;
}

#obsolete {
    border-bottom: solid 3px #7e0d13;
}

#obsolete-band {
    background-color: #7e0d13;
}

/*
    3. TYPOGRAPHY
*/

/*
    3.1 Titles
*/

  h1,h2,h3,h4,h5,h6,p.h1,.h2,.h3,.h4,.h5,.h6 {
    font-family: $headerfont;
    color: black;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.3em;
  }

  h1,.h1 {
    font-size: 1.4em;
    text-transform: uppercase;
    margin-top: 2em;
  }

  h1#content,.h1#content {
      margin-top: 2em;
  }

  h2,.h2 {
    font-size: 1.3em;
  }

  h3,.h3 {
    font-size: 1.1em;
  }

@media screen {
  span[id^="toc"]:after {
    float: left;
    padding-right: 4px;
    margin-left: -20px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8em;
    color: #cfcfcf;
    content: "\f0c1";
  }
}

  .TermNum {
    font-weight: 400;
  }

  .TermNum, .Terms, .AltTerms {
    color: black;
  }

  p.TermNum {
    font-size: 0.9em;
    line-height: 1em;
    margin: 0;
    margin-top: 2em;
  }

  p.Terms {
    font-size: 1.1em;
    line-height: 1.7em;
    margin: 0;
  }

  p.AltTerms {
    font-style: italic;
    margin: 0;
  }

  /*
span.obligation {
    font-weight: 400;
}
*/

/*
    3.2 Links
*/
@include elementStyles(#69C5DC, #69C5DC, white);

/*
    3.3 Lists
*/

    ul, ol {
    margin-left: 0.5em;
  }

#toc ul {
  margin-bottom: 0.25em; }

#toc li {
  list-style-type: none; }


/*
    3.4 Rules
*/

.rule {
    @include rule(1px, #F22E15)
}

/*
    3.5 Bibliograhy
*/

p.Biblio, p.NormRef {
    margin-top: 1em;
    margin-left: 2em;
}

/*
    3.6 Source Code + figures
*/

.figure,
pre,
.pseudocode {
    @include pseudocodeBlock(#F5F6F6);
    padding: 1.2em 1.2em 1.2em 2.2em;
    margin: 2em 0 2em -1em;
    color: rgb(91, 94, 95);
    border-left: solid 5px #69C5DC;
}

pre {
    @include monospaceBlockStyle()
}

@include admonitionBlock();
@include recommendationBlock();
@include listBlock();

.FigureTitle,
.SourceTitle {
    @include blockTitle()
}

/*
    3.7 Notes
*/

.Note {
    background-color: #F5F6F6;
    border-left: solid 5px #69C5DC;
    color: rgb(91, 94, 95);
    padding: 1.2em 1.2em 1.2em 2.2em;
    margin: 2em 0 2em -1em;
}

.Admonition {
    background-color: #ffcccc;
    border-left: solid 5px #69C5DC;
    color: rgb(91, 94, 95);
    padding: 1.2em 1.2em 1.2em 2.2em;
    margin: 2em 0 2em -1em;
}


/*
    3.8 Examples
*/

.example {
    @include exampleBlock(#e1eef1, #424242, 1.2em);
    border-left: solid 5px #69C5DC;
    color: rgb(91, 94, 95);
    margin: 2em 0 2em -1em;

    .example-title {
        margin-top: 0;
    }
    p {
        margin: 0;
    }

    pre,
    .pseudocode {
        background: none;
    }
}

/*
    3.9 Tables
*/

table {
    @include table(solid 1px #F5F6F6 !important);
    th,
    td {
        border: none !important;
        font-size: 0.95em;
    }
}

tr:nth-child(even) {
    background-color: #FBF9F8;
}

thead {
    background-color: #69C5DC;
    color: white;
    border: none;
}

p.TableTitle {
  text-align: center;
  margin-top: 2.5em;
  font-weight: 400;
}

/*
  3.10 Footnotes
*/

a.footnote-number {
    vertical-align: super;
    font-size: 0.8em;
}

.footnote {
    font-size: $footnotefontsize;
}


/*
    3.11 Blockquotes
*/

.Quote {
    @include blockquoteBlock(#f7f7f7);
}

.QuoteAttribution {
    text-align:right;
}

/*
    3.12 Formulas
*/

.formula, .Formula {
    background-color: #F5F6F6;
    border-left: solid 5px #69C5DC;
    color: rgb(91, 94, 95);
    padding: 1.2em 1.2em 1.2em 2.2em;
    margin: 2em 0 2em -1em;;
    text-align: center;
}

/*
    3.13 Contact Info
*/

.contact-info {
    background-color: #f7f7f7;
    padding: 2em;
    margin-top: 5em;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.contact-info p, .contact-info a {
    font-family: $monospacefont;
    font-variant-ligatures: none;
    font-weight: 400;
}

#boilerplate-name {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom:0;
}

#boilerplate-address {
    font-size: 1em;
    line-height: 1.3em;
    margin-top:0;
}

/*
    Keywords
*/

span.keyword {
    font-weight: 600;
}

/*
    Paragraphs
*/

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Admonitions */

.Admonition, .admonition {
    background-color: #ffb3b3;
    /* color: #47430c;*/
    padding: 0.5em;
    margin: 1.5em 0 1.5em 0;
    text-align: left;
}

.Admonition p, .admonition p {
    margin: 0;
}


/*
    4.0 Page header
*/

/*
    4.1 Top Logo
*/


.coverpage {
    /*background: radial-gradient(#2D5D8E, #0D1E2B);*/
    /*background-image: url("img/dots@2x.png");*/
    color: black;
    padding: 2em 0 0 2em;
}

  .doc-number {
      font-size: 0.5em;
      font-family: $bodyfont;
  }

  .coverpage-title {
      padding-bottom: 0.5em;
      font-family: $headerfont;
      font-size: 1.5em;
    font-weight: 900;
  }

  .coverpage-date {
      font-family: $headerfont;
    font-weight: 900;
  }

  .prefatory-section {
    padding: 0 2em 0 3em;
  }


  .zzSTDTitle1, .MsoCommentText {
    display: none;
  }


  .coverpage {
    text-align: center;
  }

    .coverpage-logo {
      margin-top: 2em;
      margin-bottom: 2em;
      background-color: white;
  }

  .coverpage-logo img {
      width: 400px;
      height: auto;
  }


  .coverpage-logo span, .coverpage-tc-name span {
    font-family: $bodyfont;
      text-transform: uppercase;
      font-weight: 300;
      display: block;
  }

 /*
  .coverpage-tc-name {
    font-size: 1.2em;
    line-height: 1.2em;
    margin: 0.25em 0;
  }
  */

/*
    4.2 Document Identity
*/

.titles {
    background-color: #69C5DC;
}

  .title-first {
    font-size: 2em;
    line-height: 2em;
    padding-bottom: 1em;
    font-weight: 900;
    text-transform: uppercase;
    background-color: #69C5DC;
    color: white;
  }

  .title-second {
      font-size: 1.5em;
      line-height: 2em;
      margin-top: 3em;
      padding-top: 1em;
      font-weight: 600;
      text-transform: uppercase;
      color: white;
  }

.docinfo {
    margin-top: 2em;
    margin-bottom: 3em;
}


.coverpage-doc-identity {
    min-height: 100px;
    width: 100%;
    background-size: 240px 80px;
    margin: auto;
}

  .coverpage-title .title-second {
    display: none;
  }

  .coverpage-stage-block {
    font-family: $bodyfont;
    font-weight: 700;
    font-size: 1em;
    margin: 1em 0em 1em 0em;
    text-transform: uppercase;
  }

.section-title {
    background-color: #69C5DC;
    padding: 1em 2em 1em 5.5em;
    margin: 4em -3em 3em -5em;
    border-bottom: 4px solid #F22E15;
}


.section-title h1, .section-title .h1 {
    font-size: 2em;
    font-weight: 800;
    line-height: 1em;
    margin-top: 0.5em;
    margin-bottom: 0;
    color: white;
    text-transform: none;
}

h2,.h2 {
    border-bottom: solid 1px #69C5DC;
    color: black;
}


/*
    4.3 Draft Warning
*/


  .coverpage-warning {
    border-top: solid 1px #F22E15;
    border-bottom: solid 1px #F22E15;
    margin: 1em 2em;
    color: black;
    padding: 1em;
  }

  .coverpage-warning .title {
    color: #F22E15;
    font-family: $headerfont;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2em;
  }



/*
    4.4 Copyright
*/

  .copyright {
    padding: 1em;
    font-size: 0.8em;
    text-align: left;
  }


  .contact-info {color: black;}



/*
    5.0 Other styles
*/

a.anchorjs-link:hover {
  background: none;
  color: #485094;
  box-shadow: none;
}

@page {
    margin: 1cm;
}

@media print {
    .section-title {page-break-before: always;}
    #toggle, .document-stage-band,
    .document-type-band {display: none;}
    .container {padding-left: 0;}

}