- reduced custom styles, use mostly tailwind classes

- updated markdown css for extrausercontent
This commit is contained in:
Ginger Wong
2020-08-21 23:44:10 -07:00
parent 66dc2f84c9
commit 13cfd112b7
14 changed files with 392 additions and 395 deletions
+73 -39
View File
@@ -1,28 +1,58 @@
#chat-container {
position: fixed;
z-index: 9;
top: var(--header-height);
right: 0;
width: var(--right-col-width);
height: calc(100vh - var(--header-height));
/* overflow: hidden; */
/* display: flex;
flex-direction: column;
justify-content: flex-end; */
}
.touch-screen #chat-container {
height: calc(100vh - var(--header-height) - 3vh);
}
.no-chat #chat-container-wrap {
display: none;
}
.chat #chat-container-wrap {
display: block;
}
#messages-container {
overflow: auto;
padding: 1em 0;
/* overflow: auto;
padding: 1em 0; */
}
#message-input-container {
width: 100%;
padding: 1em;
/* width: 100%; */
/* padding: 1em; */
}
/******************************/
/******************************/
#message-input {
height: 5rem;
font-size: .85em;
/* height: 5rem; */
/* font-size: .85em; */
}
#message-input img {
display: inline;
vertical-align: middle;
padding: 5px;
padding: .25rem;
}
#message-input .emoji {
width: 2.2em;
width: 2.2rem;
padding: .25rem;
}
@@ -61,23 +91,23 @@
#message-form-actions {
flex-direction: row;
/* flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
width: 100%; */
}
#message-form-actions-buttons {
flex-direction: row;
/* flex-direction: row;
justify-content: flex-end;
align-items: center;
align-items: center; */
}
/* Emoji picker button */
#emoji-button {
font-size: 1.75em;
cursor: pointer;
margin-right: .5em;
/* font-size: 1.75em; */
/* cursor: pointer;
margin-right: .5em; */
}
.emoji-picker__emoji {
border-radius: 10px;
@@ -85,11 +115,13 @@
.message {
padding: .85em;
align-items: flex-start;
/* padding: .85em; */
/* align-items: flex-start; */
}
.message-avatar {
margin-right: .75em;
height: 3.0em;
width: 3.0em;
/* margin-right: .75em; */
}
.message-avatar img {
max-width: unset;
@@ -99,17 +131,17 @@
}
.message-content {
font-size: .85em;
/* font-size: .85em; */
max-width: 85%;
word-wrap: break-word;
/* word-wrap: break-word; */
}
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT HTML */
/* MESSAGE TEXT HTML */
/* MESSAGE TEXT HTML */
.message-text a {
color: #7F9CF5; /* indigo-400 */
}
@@ -119,41 +151,43 @@
.message-text img {
display: inline;
padding-left: 5px;
padding-right: 5px;
padding-left: 0 .25rem;
}
.message-text .emoji {
width: 3rem;
padding: .25rem
}
.message-text code {
font-family: monospace;
background-color:darkslategrey;
padding: 3px;
padding: .25rem;
}
.message-text .emoji {
width: 60px;
}
.message-text iframe {
width: 100%;
height: 170px;
border-radius: 15px;
height: 12rem;
border-radius: 1rem;
}
.message-text .instagram-embed {
height: 314px;
height: 22em;
}
.message-text .embedded-image {
width: 100%;
height: 170px;
border-radius: 15px;
display: block;
height: 15rem;
border-radius: 1rem;
}
.message-text .highlighted {
color: orange;
/* color: orange;
font-weight: 400;
font-size: 14px;
}
} */
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT CONTENT */
+68 -91
View File
@@ -39,90 +39,90 @@ a:hover {
}
#app-container {
width: 100%;
/* width: 100%;
flex-direction: column;
justify-content: flex-start;
position: relative;
position: relative; */
}
header {
position: fixed;
width: 100%;
/* position: fixed;
width: 100%; */
height: var(--header-height);
top: 0;
left: 0;
/* top: 0;
left: 0; */
background-color: var(--header-bg-color);
z-index: 10;
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
/* z-index: 10; */
/* flex-direction: row;
justify-content: space-between; */
/* flex-wrap: nowrap; */
}
header h1 {
font-size: 1.25em;
font-weight: 100;
letter-spacing: 1.2;
text-transform: uppercase;
padding: .5em;
white-space: nowrap;
justify-content: flex-start;
/* font-size: 1.25em; */
/* font-weight: 100;
letter-spacing: 1.2; */
/* text-transform: uppercase; */
/* padding: .5em; */
/* white-space: nowrap; */
/* justify-content: flex-start;
align-items: center;
flex-direction: row;
overflow: hidden;
flex-direction: row; */
/* overflow: hidden; */
}
#logo-container{
height: 1.75em;
width: 1.75em;
min-height: 1.75em;
min-width: 1.75em;
margin-right: .5em;
display: inline-block;
background-repeat: no-repeat;
background-position: center center;
/* height: 1.75em;
width: 1.75em; */
/* min-height: 1.75em;
min-width: 1.75em; */
/* margin-right: .5em; */
/* display: inline-block; */
/* background-repeat: no-repeat; */
/* background-position: center center; */
background-size: 1.35em;
}
header .instance-title {
overflow: hidden;
text-overflow: ellipsis;
/* overflow: hidden;
text-overflow: ellipsis; */
}
#chat-toggle {
cursor: pointer;
text-align: center;
height: 100%;
min-width: 3em;
justify-content: center;
align-items: center;
/* cursor: pointer;
text-align: center; */
/* height: 100%;*/
min-width: 3rem;
/* justify-content: center;
align-items: center; */
}
footer {
flex-direction: row;
/* flex-direction: row;
justify-content: flex-start;
font-size: .75em;
padding: 2em;
opacity: .5;
opacity: .5; */
}
footer span {
display: inline-block;
margin: 0 1em;
/* display: inline-block;
margin: 0 1em; */
}
/* ************************************************8 */
#stream-info {
padding: .5em 2em;
text-align: center;
/* padding: .5em 2em; */
/* text-align: center;
width: 100%;
flex-direction: row;
justify-content: space-between;
justify-content: space-between; */
}
#stream-info span {
font-size: .7em;
/* font-size: .7em; */
}
.user-content {
padding: 2em;
/* padding: 2em; */
}
/* #user-content {
display: block;
@@ -141,73 +141,73 @@ footer span {
height: 100%;
} */
.stream-summary {
margin: 1em 0;
/* margin: 1em 0; */
}
h2 {
font-size: 3em;
/* font-size: 3em; */
}
/* ************************************************8 */
#user-options-container {
flex-direction: row;
/* flex-direction: row;
justify-content: flex-end;
align-items: center;
flex-wrap: nowrap;
flex-wrap: nowrap; */
}
#user-info-display {
display: flex;
/* display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
cursor: pointer;
padding: .5em 1em;
overflow: hidden;
width: 100%;
width: 100%; */
}
#username-avatar {
height: 2.1em;
/* height: 2.1em;
width: 2.1em;
margin-right: .5em;
margin-right: .5em; */
}
#username-display {
font-weight: 600;
font-size: .75em;
white-space: nowrap;
/* font-weight: 600; */
/* font-size: .75em; */
/* white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
overflow: hidden; */
}
#user-info-display:hover {
transition: opacity .2s;
opacity: .75;
/* transition: opacity .2s;
opacity: .75; */
}
#user-info-change {
display: none;
justify-content: flex-end;
/* justify-content: flex-end;
align-items: center;
padding: .25em;
padding: .25em; */
}
#username-change-input {
font-size: .75em;
/* font-size: .75em; */
}
#button-update-username {
font-size: .65em;
text-transform: uppercase;
height: 2.5em;
/* font-size: .65em; */
/* text-transform: uppercase; */
/* height: 2.5em; */
}
#button-cancel-change {
cursor: pointer;
height: 2.5em;
font-size: .65em;
/* cursor: pointer; */
/* height: 2.5em; */
/* font-size: .65em; */
}
.user-btn {
margin: 0 .25em;
/* margin: 0 .25em; */
}
/* ************************************************8 */
@@ -260,16 +260,10 @@ h2 {
/* ************************************************8 */
.no-chat #chat-container-wrap {
display: none;
}
.no-chat footer {
justify-content: center;
}
.chat #chat-container-wrap {
display: block;
}
.chat #video-container,
.chat #stream-info,
@@ -278,23 +272,6 @@ h2 {
}
#chat-container {
position: fixed;
z-index: 9;
top: var(--header-height);
right: 0;
width: var(--right-col-width);
height: calc(100vh - var(--header-height));
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.touch-screen #chat-container {
height: calc(100vh - var(--header-height) - 3vh);
}
+91 -81
View File
@@ -1,71 +1,71 @@
.user-content {
padding: 3em;
/* padding: 3rem; */
display: flex;
flex-direction: row;
/* display: flex;
flex-direction: row; */
}
.user-content .user-image {
padding: 1em;
margin-right: 2em;
/* padding: 1rem;
margin-right: 2rem; */
min-width: var(--user-image-width);
width: var(--user-image-width);
height: var(--user-image-width);
max-height: var(--user-image-width);
background-repeat: no-repeat;
background-position: center center;
/* background-repeat: no-repeat;
background-position: center center; */
background-size: calc(var(--user-image-width) - 1em);
}
.user-content-header {
margin-bottom: 2em;
/* margin-bottom: 2rem; */
}
.tag-list {
flex-direction: row;
margin: 1em 0;
/* flex-direction: row; */
/* margin: 1em 0; */
}
.tag-list li {
font-size: .75em;
text-transform: uppercase;
margin-right: .75em;
padding: .5em;
/* font-size: .75rem; */
/* text-transform: uppercase; */
/* margin-right: .75rem; */
/* padding: .5rem; */
}
.social-list {
flex-direction: row;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
/* flex-direction: row; */
/* align-items: center; */
/* justify-content: flex-start; */
/* flex-wrap: wrap; */
}
.social-list .follow-label {
font-weight: bold;
font-size: .75em;
margin-right: .5em;
text-transform: uppercase;
/* font-weight: bold; */
/* font-size: .75rem; */
/* margin-right: .5rem; */
/* text-transform: uppercase; */
}
.user-social-item {
display: flex;
/* display: flex;
justify-content: flex-start;
align-items: center;
margin-right: -.25em;
margin-right: -.25rem; */
}
.user-social-item .platform-icon {
--icon-width: 40px;
height: var(--icon-width);
width: var(--icon-width);
background-image: url(/img/social-icons.gif);
background-repeat: no-repeat;
/* background-repeat: no-repeat; */
background-position: calc(var(--imgCol) * var(--icon-width)) calc(var(--imgRow) * var(--icon-width));
transform: scale(.65);
}
.user-social-item.use-default .platform-label {
font-size: .7em;
text-transform: uppercase;
display: inline-block;
max-width: 10em;
/* font-size: .7rem; */
/* text-transform: uppercase; */
/* display: inline-block; */
/* max-width: 10rem; */
}
@@ -75,124 +75,134 @@ Assumes markup converted from markdown input.
*/
#extra-user-content {
padding: 1em 3em 3em 3em;
/* padding: 1rem 3rem 3rem 3rem; */
}
#extra-user-content ul,
#extra-user-content ol {
margin: 0;
padding: 0;
}
#extra-user-content ol {
list-style: decimal;
margin-left: 1.5rem;
}
#extra-user-content ul {
list-style: unset;
margin-left: 1.5rem;
}
#extra-user-content h1,
/* #extra-user-content h1,
#extra-user-content h2,
#extra-user-content h3,
#extra-user-content h4 {
color: #111111;
font-weight: 400;
}
} */
#extra-user-content h1,
#extra-user-content h2,
#extra-user-content h3,
#extra-user-content h4,
#extra-user-content h5,
#extra-user-content p {
margin-bottom: 24px;
#extra-user-content h6 {
margin: 0;
padding: 0;
margin: 1.5rem 0 .5rem;
font-weight: 600;
line-height: 1.2;
}
#extra-user-content h1 {
font-size: 48px;
font-size: 2.1rem;
}
#extra-user-content h2 {
font-size: 36px;
margin: 24px 0 6px;
font-size: 1.8rem;
}
#extra-user-content h3 {
font-size: 24px;
font-size: 1.5rem;
}
#extra-user-content h4 {
font-size: 21px;
font-size: 1.2rem;
}
#extra-user-content h5 {
font-size: 18px;
font-size: 1.25rem;
}
#extra-user-content h6 {
font-weight: 400;
font-size: 1rem;
}
#extra-user-content p {
margin-top: 0;
margin-bottom: 1rem;
}
#extra-user-content a {
color: #0099ff;
margin: 0;
padding: 0;
vertical-align: baseline;
}
#extra-user-content ul, #extra-user-content ol {
padding: 0;
margin: 0;
}
#extra-user-content li {
line-height: 24px;
line-height: 1.5rem;
}
#extra-user-content li ul, #extra-user-content li ul {
margin-left: 24px; }
#extra-user-content p, #extra-user-content ul, #extra-user-content ol {
font-size: 16px;
line-height: 24px;
#extra-user-content li ul,
#extra-user-content li ul {
margin-left: 1.5rem;
}
#extra-user-content pre {
padding: 0px 24px;
max-width: 800px;
white-space: pre-wrap;
#extra-user-content blockquote {
border-left: .25rem solid #bbc;
padding: 0 1rem;
}
#extra-user-content blockquote p {
margin: 1rem 0;
}
#extra-user-content pre,
#extra-user-content code {
font-family: Consolas, Monaco, Andale Mono, monospace;
line-height: 1.5;
font-size: 13px;
font-family: monospace;
font-size: .85rem;
background-color: #eee;
color: #900;
}
#extra-user-content pre {
margin: 1rem 0;
padding: 1rem;
max-width: 80%;
white-space: pre-wrap;
}
#extra-user-content aside {
display: block;
float: right;
width: 390px;
}
#extra-user-content blockquote {
margin: 1em 2em;
max-width: 476px;
}
#extra-user-content blockquote p {
color: #666;
max-width: 460px;
width: 35%;
}
#extra-user-content hr {
width: 540px;
text-align: left;
margin: 0 auto 0 0;
color: #999;
width: 100%;
border-top: 1px solid #666;
margin-bottom: 1rem;
}
#extra-user-content table {
border-collapse: collapse;
margin: 1em 1em;
margin: 1em 1rem;
border: 1px solid #CCC;
}
#extra-user-content table thead {
background-color: #EEE;
background-color: #eee;
}
#extra-user-content table thead td {
@@ -200,6 +210,6 @@ Assumes markup converted from markdown input.
}
#extra-user-content table td {
padding: 0.5em 1em;
padding: 0.5rem 1rem;
border: 1px solid #CCC;
}