gnu-social/public/assets/css/network/public_small.css

333 lines
6.8 KiB
CSS
Raw Normal View History

2020-08-15 01:17:17 +01:00
.content {
display: flex;
flex-wrap: wrap;
margin-top: calc(4 * var(--main-size));
2020-08-15 01:17:17 +01:00
justify-content: center;
align-items: center;
2020-08-31 21:03:16 +01:00
margin-left: 1%;
margin-right: 1%;
margin-bottom: 1%;
2020-08-15 01:17:17 +01:00
}
.content .main {
width: 100%;
2020-08-31 21:03:16 +01:00
margin-left: 0;
margin-right: 0;
margin-top: var(--unit-size);
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size);
background-color: var(--bg3);
border: solid 2px var(--accent-low);
2020-08-15 01:17:17 +01:00
}
.main-nav {
order: 1;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
flex: 1;
background-color: var(--bg1);
padding: var(--medium-size);
font-family: var(--head-font);
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size) var(--unit-size) 0 0;
border-bottom: solid 2px var(--accent-low);
2020-08-15 01:17:17 +01:00
}
.main-nav ul {
display: flex;
align-items: stretch;
justify-content: space-evenly;
2020-08-31 21:03:16 +01:00
text-align: center;
2020-08-15 01:17:17 +01:00
width: 100%;
font-size: var(--medium-size);
2020-08-31 21:03:16 +01:00
margin-left: calc(2 * var(--side-margin));
margin-right: calc(2 * var(--side-margin));
2020-08-15 01:17:17 +01:00
padding: 0;
}
.main-nav li {
display: block;
2020-08-31 21:03:16 +01:00
flex: 1;
2020-08-15 01:17:17 +01:00
list-style-type: none;
font-weight: 700;
2020-08-31 21:03:16 +01:00
width: auto;
2020-08-15 01:17:17 +01:00
}
.notes-wrap .main-nav ul {
font-size: var(--unit-size);
}
2020-08-15 01:17:17 +01:00
.active {
color: var(--fg) !important;
font-weight: 700;
}
.main-nav a {
color: var(--accent);
}
.main-nav a:hover {
color: var(--fg);
transition: all 0.8s ease;
}
2020-08-31 21:03:16 +01:00
/* notices */
.notes {
display: flex;
flex-wrap: wrap;
}
.notes-wrap {
2020-08-15 01:17:17 +01:00
display: flex;
flex-wrap: wrap;
font-size: var(--medium-size);
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size);
background-color: var(--bg3);
box-shadow: var(--shadow);
2020-08-31 21:03:16 +01:00
margin: 1%;
border: solid 2px var(--accent-low);
2020-08-15 01:17:17 +01:00
}
.notes-wrap .timeline {
order: 3;
2020-08-15 01:17:17 +01:00
width: 100%;
}
.notes-wrap .timeline .notes > div {
margin: 2% 2% 0 2%;
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size);
2020-08-15 01:17:17 +01:00
width: 100%;
}
.notes-wrap .timeline .notes > div:last-child {
2020-08-31 21:03:16 +01:00
margin: 2%;
}
.notes-wrap .main-nav {
2020-08-15 01:17:17 +01:00
width: 100%;
font-size: var(--unit-size);
}
.note {
display: flex;
flex-wrap: wrap;
border: solid 2px var(--accent-low);
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size);
box-shadow: var(--shadow);
margin-bottom: 2%;
}
.note-info {
order: 1;
background-color: var(--bg1);
box-sizing: border-box;
padding: 5px 10px 5px 10px;
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size) 0 0 0;
display: flex;
align-items: center;
flex-grow: 1;
flex-shrink: 0;
width: 50%;
}
.note-info b {
margin-left: var(--small-size);
}
.note-info a {
height: calc(2 * var(--unit-size));
}
.note-info a img {
width: calc(2 * var(--unit-size));
height: calc(2 * var(--unit-size));
}
.note-content {
order: 3;
word-break: break-word;
padding: var(--small-size);
2020-08-31 21:03:16 +01:00
border-radius: 0 0 var(--unit-size) var(--unit-size);
width: 100%;
}
.note-actions {
order: 2;
width: 50%;
2020-09-02 22:47:42 +01:00
justify-content: flex-end;
2020-08-31 21:03:16 +01:00
border-radius: 0 var(--unit-size) 0 0;
background-color: var(--bg1);
box-sizing: border-box;
padding: 5px 10px 5px 10px;
display: flex;
align-items: center;
flex-grow: 1;
flex-shrink: 0;
}
.note-actions a {
height: var(--main-size);
2020-09-02 22:47:42 +01:00
margin-left: var(--unit-size);
}
.note-actions a svg {
width: var(--main-size);
height: var(--main-size);
2020-09-02 22:47:42 +01:00
filter: invert(91%) sepia(3%) saturate(350%) hue-rotate(162deg) brightness(106%) contrast(92%);
stroke: none;
}
.replies {
order: 4;
width: 100%;
box-sizing: content-box;
2020-08-31 21:03:16 +01:00
padding: 2% 2% 0 2%;
}
/* POSTING */
.content > form {
display: flex;
flex: max-content;
2020-08-31 21:03:16 +01:00
width: -webkit-fill-available;
}
.create-notice {
display: flex;
flex-wrap: wrap;
flex: max-content;
2020-08-31 21:03:16 +01:00
width: -webkit-fill-available;
margin-left: 0;
margin-right: 0;
border-radius: var(--unit-size);
2020-08-27 03:26:46 +01:00
border: solid 2px var(--accent-low);
background-color: var(--bg3);
2020-08-28 07:18:05 +01:00
}
.create-right {
order: 2;
2020-08-31 21:03:16 +01:00
width: 75%;
border-radius: 0 var(--unit-size) var(--unit-size) 0;
2020-08-28 07:18:05 +01:00
background-color: var(--bg3);
}
/* target multi-select */
.target {
order: 1;
2020-08-31 21:03:16 +01:00
width: 25%;
2020-08-28 07:18:05 +01:00
background-color: var(--bg1);
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size) 0 0 var(--unit-size);
2020-08-28 07:18:05 +01:00
}
.target-top {
2020-08-31 21:03:16 +01:00
padding: var(--unit-size) var(--unit-size) 0 var(--unit-size);
font-size: var(--medium-size);
2020-08-28 07:18:05 +01:00
}
.target-bot {
padding-left: var(--unit-size);
padding-bottom: var(--unit-size);
2020-08-31 21:03:16 +01:00
font-size: var(--medium-size);
2020-08-28 07:18:05 +01:00
}
.target .required {
font-weight: 800;
font-family: var(--head-font);
}
.target #form_to {
font-weight: 400;
font-family: var(--main-font);
}
.target #form_to label {
margin-left: 0.2em;
}
2020-08-27 03:26:46 +01:00
/* scope options */
.scope {
order: 1;
2020-08-27 03:26:46 +01:00
width: 100%;
display: flex;
flex-wrap: wrap;
color: var(--fg);
2020-08-28 07:18:05 +01:00
background-color: var(--bg1);
2020-08-31 21:03:16 +01:00
border-radius: 0 var(--unit-size) 0 0;
2020-08-27 03:26:46 +01:00
}
2020-08-31 21:03:16 +01:00
.scope > div {
2020-08-27 03:26:46 +01:00
display: inline;
vertical-align: middle;
flex: 1;
2020-08-31 21:03:16 +01:00
font-size: var(--medium-size);
2020-08-27 03:26:46 +01:00
color: var(--fg);
2020-08-28 07:18:05 +01:00
padding: var(--unit-size);
}
.scope .required {
order: 1;
font-weight: 800;
2020-08-28 07:18:05 +01:00
font-family: var(--head-font);
}
#form_visibility .required {
font-family: var(--main-font);
font-weight: 400;
margin-left: 0.1em;
margin-right: 1em;
}
.scope #form_scope {
order: 2;
flex-grow: 1;
2020-08-27 03:26:46 +01:00
flex-shrink: 1;
}
2020-08-27 03:26:46 +01:00
/* input box */
2020-08-28 07:18:05 +01:00
.input-wrapper {
order: 2;
display: inline-flex;
justify-content: flex-start;
width: 100%;
box-sizing: border-box;
}
2020-08-27 03:26:46 +01:00
.content-input {
order: 2;
2020-08-27 03:26:46 +01:00
flex-grow: 1;
flex-shrink: 0;
}
#form_content {
2020-08-31 21:03:16 +01:00
background-color: var(--bg3);
2020-08-28 07:18:05 +01:00
padding: var(--unit-size);
2020-08-27 03:26:46 +01:00
color: var(--fg);
2020-08-28 07:18:05 +01:00
font-size: var(--medium-size);
font-family: var(--main-font);
2020-08-27 03:26:46 +01:00
width: 100%;
box-sizing: border-box;
height: calc(8 * var(--unit-size));
resize: vertical;
2020-08-27 03:26:46 +01:00
}
/* options */
.notice-options {
2020-08-27 03:26:46 +01:00
order: 3;
display: inline-flex;
width: 100%;
box-sizing: border-box;
2020-08-28 07:18:05 +01:00
padding: 1%;
2020-08-31 21:03:16 +01:00
background-color: var(--bg3);
border-radius: 0 0 var(--unit-size) 0;
}
2020-08-27 03:26:46 +01:00
.send {
order: 2;
width: calc(100% - var(--main-size));
}
.send div {
float: right;
vertical-align: middle;
}
#form_attachments {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
#form_attachments + label {
cursor: pointer;
}
#form_attachments:focus + label,
#form_attachments + label:hover {
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size);
box-shadow: 0 0px 8px var(--accent);
}
.icon-attach {
width: var(--main-size);
height: var(--main-size);
2020-08-31 21:03:16 +01:00
font-size: var(--medium-size);
fill: var(--fg);
background-color: var(--bg1);
padding: 0.3em 1em;
border-style: solid;
border-color: var(--accent);
2020-08-31 21:03:16 +01:00
border-radius: var(--unit-size);
border-width: 2px;
margin-bottom: -0.5em;
2020-08-31 21:03:16 +01:00
cursor: pointer;
z-index: 0;
}