WhisperMaPhone/thoughts/static/thoughts/main.css

268 lines
5.0 KiB
CSS
Raw Normal View History

@charset "UTF-8";
2020-12-02 20:33:19 +00:00
html {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
background: var(--accent-color);
}
2020-09-06 16:39:00 +00:00
body {
margin: 0 1.5%;
2020-09-06 16:39:00 +00:00
background: var(--background-color);
min-height: calc(100% - 40px);
2020-09-06 16:39:00 +00:00
/*The height of the footer at the bottom*/
padding: 0 0 40px;
2020-09-06 17:23:30 +00:00
font-size: 16px;
2020-09-06 16:39:00 +00:00
color: var(--text-color);
2020-09-06 17:23:30 +00:00
font-family: Helvetica, Arial, sans-serif;
2020-11-14 04:10:59 +00:00
-webkit-text-size-adjust: 100%;
2020-09-06 17:23:30 +00:00
}
2020-09-06 16:39:00 +00:00
.main-wrap {
max-width: 36em;
margin: 20px 30px;
}
2020-09-06 17:23:30 +00:00
.thought {
margin: 20px 0;
2020-09-06 17:23:30 +00:00
}
.thought.highlighted .main, .thought.highlighted .extended {
2020-11-22 00:05:31 +00:00
margin-left: 25px;
}
/* Standard button styles, most prominently used on the show-more buttons */
button, input[type="button"], input[type="submit"], .button {
2020-09-06 17:23:30 +00:00
background: none;
border: none;
border-radius: 0;
cursor: pointer;
color: var(--accent-color);
margin: 3px 6px;
2020-09-06 17:23:30 +00:00
padding: 0;
border-bottom: 1px solid transparent;
outline: none;
font-size: 13px;
2020-09-06 16:39:00 +00:00
}
button:hover, button:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
.button:hover, .button:focus {
/* border-bottom-color: var(--accent-color); */
text-decoration: underline;
}
/* Textbox/textarea styles */
textarea, input[type="text"], input[type="password"] {
padding: 0 5px;
outline: none;
resize: none;
background: none;
border: none;
font-size: inherit;
color: inherit;
font-family: inherit;
border-bottom: 1px solid var(--accent-color);
border-radius: 0;
overflow-x: hidden;
display: block;
line-height: 1.5;
}
2021-10-12 21:15:05 +00:00
textarea::placeholder, input[type="text"]::placeholder {
color: var(--text-color);
opacity: 50%;
}
2021-05-01 20:14:20 +00:00
.text, .thought-end {
max-width: 100%;
2021-05-01 20:14:20 +00:00
line-height: 1.5em;
}
.thought .text {
white-space: pre-wrap;
2021-10-14 16:45:09 +00:00
font-family: inherit;
overflow-wrap: break-word;
}
.main-text, .main-text p:last-child {
display: inline; /*inline so that the Show More is on the same line*/
}
a {
text-decoration: none;
color: var(--accent-color);
}
.text p {
padding: 0;
margin: 0;
overflow-wrap: break-word;
}
.text > :not(:last-child) {
margin-bottom: 1em;
}
/*Inline code*/
.text p > code {
border-radius: 3px;
padding: 1px 5px;
background: rgba(0, 0, 0, 0.3);
}
/*Code blocks*/
.text pre {
margin: 0;
overflow-x: auto;
display: block;
background: rgba(0, 0, 0, 0.3);
border-radius: 3px;
padding: 3px 7px;
}
.text pre > code {
/* block forces the text to the whole width, but since inline-block is buggy in Safari, this is our best option */
display: block;
2020-09-06 17:23:30 +00:00
}
/* Emphasis blocks on the About page */
em.text, .text.quote, .text em {
color: var(--accent-color);
}
h1 {
border-bottom: 3px solid var(--accent-color);
}
2020-09-06 17:23:30 +00:00
2021-05-01 20:03:31 +00:00
.extended-media {
max-width: calc(100% - 20px);
max-height: 500px;
2021-05-01 20:03:31 +00:00
margin: 10px;
2021-05-10 18:21:15 +00:00
display: block;
}
2020-09-06 17:23:30 +00:00
.extended-text {
margin-top: 1em;
display: block; /*Needs to be inline-block or block, so that margin on it works*/
2020-09-06 17:23:30 +00:00
}
2022-04-12 21:06:42 +00:00
.thought .main {
min-height: 1em;
}
2020-10-01 02:12:52 +00:00
.thought-end {
overflow: auto;
font-size: 14px;
color: var(--accent-color);
margin-top: 16px;
}
.thought hr {
margin: 0;
border-style: none;
2020-10-01 02:12:52 +00:00
border-bottom: 1px var(--accent-color) solid;
}
.timestamp, .permalink {
2020-09-06 17:23:30 +00:00
float: right;
}
.permalink {
margin-left: 6px;
2022-01-09 23:57:37 +00:00
color: var(--text-color);
}
.permalink .button, .permalink .button:visited {
2020-09-06 17:23:30 +00:00
color: var(--accent-color);
margin-left: 2px;
2022-01-09 23:57:37 +00:00
font-size: 14px;
}
.permalink .button:hover {
text-decoration: underline;
}
.permalink::before {
2022-01-09 23:57:37 +00:00
content: "•";
}
.edit-link .button {
margin-right: 0;
2020-09-06 17:23:30 +00:00
}
.transcript {
white-space: pre-wrap;
font-family: inherit;
overflow-wrap: break-word;
padding-left: 5px;
line-height: 1.5;
}
.transcript, .transcript-button {
font-size: 14px;
}
.transcript-label {
color: var(--accent-color);
font-size: 16px;
padding-bottom: 0.5em;
padding-left: 3px;
}
/* Navbar styles */
#main-nav {
2020-09-06 16:39:00 +00:00
padding: 4% 30px 15px;
font-size: 3rem !important;
font-weight: normal;
margin: 0;
2021-01-03 20:30:01 +00:00
overflow: auto;
white-space: nowrap;
2020-09-06 16:39:00 +00:00
}
#main-nav .text {
2020-09-06 16:39:00 +00:00
color: var(--text-color);
2020-09-06 18:17:49 +00:00
2020-09-06 16:39:00 +00:00
font-family: Georgia, Libre Baskerville, serif;
}
#main-nav h1.text {
2020-09-06 16:39:00 +00:00
border-bottom: 4px solid var(--accent-color);
}
#main-nav h1 {
/* Disable browser styles for h1 */
font-size: inherit;
font-weight: inherit;
display: inline;
}
2021-10-12 16:05:41 +00:00
.history-nav {
2021-10-14 03:34:16 +00:00
margin-top: 30px;
margin-bottom: 40px;
margin-left: 20px;
}
2021-10-12 16:05:41 +00:00
.history-nav ul {
margin: 0;
padding: 0;
2021-10-12 16:05:41 +00:00
list-style: none;
}
.history-nav li {
display: inline;
}
.history-nav li:not(:first-child)::before {
content: "•";
}
.history-nav li:not(:first-child) > * {
margin-left: 10px;
}
.history-nav li:not(:last-child) > * {
margin-right: 5px;
}
.history-nav .current-page {
font-weight: bold;
}
.history-nav a, .history-nav a:visited {
color: var(--accent-color);
}
.history-nav a:hover {
text-decoration: underline;
}