View Single Post
Old 11-03-2019, 09:41 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,839
Karma: 150266009
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Azdaema View Post
In fonts.css I've got:

Code:
@font-face {
  font-family: "Helvetica Neue";
  font-weight: normal;
  font-style: normal;
  src: url(fonts/Helvetica-Neue-1.ttf);
}
I've got the .ttf file in the fonts section.

The texting CSS in stylesheet.css is:
Code:
/* Texting wrapper */
.texting {
  max-width: 300px;
  font-family: "Helvetica Neue", sans-serif;
  display: table;
  margin: auto;
  padding-left: 0.5em;
  padding-right: 0.5em;
}
/* All texts */
.text {
  margin: 0 0 0.5em;
  border-radius: 1em;
  padding: 0.5em 1em;
  max-width: 75%;
  clear: both;
  position: relative;
}
.text:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0.5em;
  height: 1em;
}
/* Outgoing (sent from this phone) */
.out {
  float: right;
  background: #1289fe;
  color: #FFF;
}
.out:after {
  right: -0.5em;
  border-left: 0.5em solid #1289fe;
  border-bottom-left-radius: 1em 0.5em;
}
/* Incoming (reply from other person) */
.in {
  float: left;
  background: #e5e5ea;
  color: #000;
}
.in:after {
  left: -0.5em;
  border-right: 0.5em solid #e5e5ea;
  border-bottom-right-radius: 1em 0.5em;
}
It's not really a good idea to use multiple CSS. Just merge it all into one.
JSWolf is online now   Reply With Quote