0 Replies Latest reply on Sep 25, 2016 1:23 AM by shadoweds59162597

    Adding Nightmode

    shadoweds59162597

      So I just deleted all the color tags in the css of my epub, removing the #000000 code for color. This has not apparently switched the color base for the font so it adapts to nightmode. Is this the common fix or there a more appropriate CSS coding?

       

      I ask as this was not covered in my design class for epub so I'm having trouble locating a tutorial.

       

      Thanks

       

      Here is the css in question:

      @font-face {
      font-family:Calibri;
      font-style:normal;
      font-weight:normal;
      src : url("../font/Calibri.ttf");
      }
      @font-face {
      font-family:Georgia;
      font-style:normal;
      font-weight:normal;
      src : url("../font/Georgia.ttf");
      }
      @font-face {
      font-family:Georgia;
      font-style:normal;
      font-weight:bold;
      src : url("../font/Georgia-Bold.ttf");
      }
      @font-face {
      font-family:Georgia;
      font-style:italic;
      font-weight:normal;
      src : url("../font/Georgia-Italic.ttf");
      }
      @font-face {
      font-family:Georgia;
      font-style:oblique;
      font-weight:normal;
      src : url("../font/Georgia-Italic.ttf");
      }
      @font-face {
      font-family:"Lucida Sans Unicode";
      font-style:normal;
      font-weight:normal;
      src : url("../font/LucidaSansUnicode.ttf");
      }
      @font-face {
      font-family:"Minion Pro";
      font-style:normal;
      font-weight:bold;
      src : url("../font/MinionPro-Bold.otf");
      }
      @font-face {
      font-family:"Minion Pro";
      font-style:italic;
      font-weight:normal;
      src : url("../font/MinionPro-It.otf");
      }
      @font-face {
      font-family:"Minion Pro";
      font-style:oblique;
      font-weight:normal;
      src : url("../font/MinionPro-It.otf");
      }
      @font-face {
      font-family:"Minion Pro";
      font-style:normal;
      font-weight:normal;
      src : url("../font/MinionPro-Regular.otf");
      }
      body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, pre, code, blockquote {
      margin:0;
      padding:0;
      border-width:0;
      }
      body {
      -epub-hyphens:auto;
      }
      @page {
      margin : 0px 0px 0px 0px;
      }
      div.Basic-Text-Frame {
      border-style:solid;
      }
      p.acknowledgmentsheader {
      font-family:Georgia, serif;
      font-size:1.333em;
      font-style:normal;
      font-variant:normal;
      font-weight:bold;
      line-height:1.2;
      margin-bottom:18px;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:always;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.acknowledgmentsbody {
      -epub-hyphens:none;
      -webkit-hyphens:none;
      font-family:Georgia, serif;
      font-size:0.75em;
      font-style:normal;
      font-variant:normal;
      font-weight:normal;
      line-height:1.15;
      margin-bottom:0;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:center;
      text-decoration:none;
      text-indent:27px;
      text-transform:none;
      widows:1;
      }
      p.Appendices-Header {
      font-family:Georgia, serif;
      font-size:0.917em;
      font-style:normal;
      font-variant:normal;
      font-weight:bold;
      line-height:1;
      margin-bottom:5px;
      margin-left:0;
      margin-right:0;
      margin-top:14px;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.Appendices-Subheader {
      font-family:Georgia, serif;
      font-size:0.833em;
      font-style:normal;
      font-variant:normal;
      font-weight:bold;
      line-height:1.1;
      margin-bottom:0;
      margin-left:0;
      margin-right:0;
      margin-top:9px;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:left;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      h1.chapter {
      font-family:Georgia, serif;
      font-size:1.333em;
      font-style:normal;
      font-variant:normal;
      font-weight:bold;
      line-height:1.2;
      margin-bottom:14px;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:always;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      h2.Chapter {
      font-family:Georgia, serif;
      font-size:1em;
      font-style:normal;
      font-variant:normal;
      font-weight:bold;
      line-height:1.2;
      margin-bottom:14px;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.copyright {
      -epub-hyphens:none;
      -webkit-hyphens:none;
      font-family:Georgia, serif;
      font-size:1em;
      font-style:normal;
      font-variant:normal;
      font-weight:normal;
      line-height:1.2;
      margin-bottom:0;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:left;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.Dedication {
      -epub-hyphens:none;
      -webkit-hyphens:none;
      font-family:Georgia, serif;
      font-size:1em;
      font-style:italic;
      font-variant:normal;
      font-weight:normal;
      line-height:1.333;
      margin-bottom:0;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.Names {
      -epub-hyphens:none;
      -webkit-hyphens:none;
      font-family:"Minion Pro", serif;
      font-size:1em;
      font-style:normal;
      font-variant:normal;
      font-weight:normal;
      line-height:0.917;
      margin-bottom:0;
      margin-left:9px;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:left;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.Part-of-Book {
      font-family:Georgia, serif;
      font-size:1.333em;
      font-style:normal;
      font-variant:normal;
      font-weight:bold;
      line-height:1.2;
      margin-bottom:14px;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:always;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.pov {
      font-family:Georgia, serif;
      font-size:0.75em;
      font-style:normal;
      font-variant:normal;
      font-weight:bold;
      line-height:1.2;
      margin-bottom:9px;
      margin-left:0;
      margin-right:0;
      margin-top:9px;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.Quote {
      -epub-hyphens:none;
      -epub-line-break:normal;
      -webkit-hyphens:none;
      font-family:Georgia, serif;
      font-size:0.917em;
      font-style:italic;
      font-variant:normal;
      font-weight:normal;
      line-height:1.15;
      margin-bottom:0;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.Quoted-Person {
      -epub-hyphens:none;
      -webkit-hyphens:none;
      font-family:Georgia, serif;
      font-size:1em;
      font-style:normal;
      font-variant:normal;
      font-weight:normal;
      line-height:0.917;
      margin-bottom:27px;
      margin-left:0;
      margin-right:0;
      margin-top:5px;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:left;
      text-decoration:none;
      text-indent:14px;
      text-transform:none;
      widows:1;
      }
      p.Scene-Separation {
      -epub-hyphens:none;
      -webkit-hyphens:none;
      font-family:Georgia, serif;
      font-size:0.75em;
      font-style:normal;
      font-variant:normal;
      font-weight:normal;
      line-height:1.15;
      margin-bottom:5px;
      margin-left:0;
      margin-right:0;
      margin-top:5px;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:center;
      text-decoration:none;
      text-indent:0;
      text-transform:none;
      widows:1;
      }
      p.bodytext {
      -epub-hyphens:none;
      -webkit-hyphens:none;
      font-family:"Minion Pro", serif;
      font-size:1em;
      font-style:normal;
      font-variant:normal;
      font-weight:normal;
      line-height:0.917;
      margin-bottom:0;
      margin-left:0;
      margin-right:0;
      margin-top:0;
      orphans:1;
      page-break-after:auto;
      page-break-before:auto;
      text-align:left;
      text-decoration:none;
      text-indent:14px;
      text-transform:none;
      widows:1;
      }
      span.Internet-Link {
      text-decoration:underline;
      }
      p.ParaOverride-1 {
      text-align:center;
      }
      span.CharOverride-1 {
      font-family:"Minion Pro";
      font-style:italic;
      font-weight:normal;
      }
      span.CharOverride-2 {
      font-family:"Lucida Sans Unicode";
      font-style:normal;
      font-weight:normal;
      }
      span.CharOverride-3 {
      font-family:Calibri;
      font-style:normal;
      font-weight:normal;
      }
      span.CharOverride-4 {
      font-family:Georgia;
      font-style:italic;
      font-weight:normal;
      }
      span.CharOverride-5 {
      font-family:Georgia;
      font-style:normal;
      font-weight:bold;
      }
      span.CharOverride-6 {
      font-size:0.875em;
      }
      span.CharOverride-7 {
      text-decoration:underline;
      }
      span.CharOverride-8 {
      font-family:"Minion Pro";
      font-style:normal;
      font-weight:bold;
      }
      #_idContainer000 {
      display:inline-block;
      width:100.00%;
      }
      #_idContainer002 {
      display:inline-block;
      width:90.90%;
      }
      #_idContainer006, #_idContainer007, #_idContainer008 {
      display:inline-block;
      overflow:hidden;
      width:100.00%;
      }
      img._idGenObjectAttribute-1 {
      height:100.00%;
      min-width:100%;
      width:100.00%;
      }
      img._idGenObjectAttribute-2 {
      -webkit-transform:translate(0.000%,0.000%) rotate(0.000deg) skew(0.000deg) scale(1.000,1.000);
      -webkit-transform-origin:0% 0%;
      height:100.00%;
      min-width:100%;
      transform:translate(0.000%,0.000%) rotate(0.000deg) skew(0.000deg) scale(1.000,1.000);
      transform-origin:0% 0%;
      width:100.00%;
      }
      div._idGenObjectStyleOverride-1 {
      border-width:0px;
      }
      div._idGenObjectLayout-1 {
      page-break-after:always;
      page-break-before:always;
      text-align:left;
      }
      div._idGenObjectLayout-2 {
      page-break-after:always;
      page-break-before:always;
      }
      div._idGenObjectLayout-3 {
      page-break-after:always;
      page-break-before:always;
      text-align:center;
      }
      div._idGenObjectLayout-4 {
      page-break-after:always;
      }