microphp/public/index.css

248 lines
4.7 KiB
CSS
Raw Normal View History

2023-04-12 04:08:09 +03:00
html, body {
height: 100%;
margin: 0;
}
* {
box-sizing: border-box;
}
body {
font-family: Cantarell, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, "Open Sans", "Helvetica Neue", sans-serif;
letter-spacing: -0.5px;
font-weight: 500;
font-size: 21px;
}
body.dark-theme {
background-color: black;
}
.menu {
margin-bottom: 10px;
display: flex;
flex-direction: row;
}
body.dark-theme .menu {
background-color: rgb(37, 37, 37);
}
body:not(.dark-theme) .menu {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2549019608);
background-color: white;
}
.menu .icon {
display: block;
padding-top: 5px;
margin-left: 20px;
flex: 0 0 60px;
}
.menu .text {
font-size: 1.3em;
line-height: 1.8em;
flex: 1 1 auto;
}
body.dark-theme .menu .text {
color: black;
}
body:not(.dark-theme) .menu .text {
color: black;
}
.menu .lang {
flex: 0 0 auto;
color: black;
padding-right: 20px;
font-size: 0.9em;
line-height: 2.7em;
}
.main .container {
display: flex;
flex-wrap: nowrap;
margin: auto;
justify-content: center;
}
@media (min-width: 0) and (max-width: 1000px) {
.main .container {
flex-direction: column;
}
}
@media (min-width: 1000px) {
.main .container {
flex-direction: row;
}
}
.main .sidebar {
flex: 0 0 250px;
height: 100%;
font-size: 0.8em;
}
@media (min-width: 1000px) {
.main .sidebar {
position: sticky;
top: 0px;
}
}
@media (min-width: 0) and (max-width: 1000px) {
.main .sidebar:not(.mobile) {
display: none;
}
}
@media (min-width: 0) and (max-width: 1000px) {
.main .sidebar.mobile {
order: 1;
}
}
@media (min-width: 1000px) {
.main .sidebar {
margin: 10px;
padding: 10px;
margin-right: 0;
padding-right: 0;
}
}
@media (min-width: 0) and (max-width: 1000px) {
.main .sidebar {
margin: 10px;
padding: 10px;
}
}
.main .sidebar .title,
.main .sidebar .page {
display: block;
text-decoration: none;
}
.main .sidebar .title {
font-size: 1.2em;
cursor: pointer;
user-select: none;
/*&:hover{
@include light-theme{
background-color: rgba(0,0,0,0.1);
}
@include dark-theme{
background-color: rgba(255,255,255,0.1);
}
}
&:active{
@include light-theme{
background-color: rgba(0,0,0,0.2);
}
@include dark-theme{
background-color: rgba(255,255,255,0.2);
}
}*/
}
body:not(.dark-theme) .main .sidebar .title {
color: rgb(0, 0, 0);
}
body.dark-theme .main .sidebar .title {
color: rgb(255, 255, 255);
}
.main .sidebar.indent .page {
padding-left: 20px;
line-height: 2em;
}
.main .sidebar .page {
cursor: pointer;
user-select: none;
}
body:not(.dark-theme) .main .sidebar .page {
color: rgb(72, 72, 72);
}
body.dark-theme .main .sidebar .page {
color: rgb(171, 171, 171);
}
body:not(.dark-theme) .main .sidebar .page:hover {
background-color: rgba(0, 0, 0, 0.1);
}
body.dark-theme .main .sidebar .page:hover {
background-color: rgba(255, 255, 255, 0.1);
}
body:not(.dark-theme) .main .sidebar .page:active {
background-color: rgba(0, 0, 0, 0.2);
}
body.dark-theme .main .sidebar .page:active {
background-color: rgba(255, 255, 255, 0.2);
}
.main .content {
flex-grow: 1;
width: calc(100% - 20px);
}
@media (min-width: 1000px) {
.main .content {
max-width: 700px;
}
}
.main .content:not(.nows) {
margin-right: auto;
}
@media (min-width: 1000px) {
.main .content:not(.nows) {
margin: 10px;
padding: 10px;
margin-left: 0;
padding-left: 0;
}
}
@media (min-width: 0) and (max-width: 1000px) {
.main .content:not(.nows) {
margin: 10px;
padding: 10px;
}
}
.main .content p {
margin-top: 0;
margin-bottom: 0.5em;
font-weight: 400;
text-align: justify;
font-size: 0.9em;
}
body:not(.dark-theme) .main .content p {
color: rgb(72, 72, 72);
}
body.dark-theme .main .content p {
color: rgb(205, 205, 205);
}
.main .content .contenttitle {
margin: 0;
font-weight: 500;
}
@media (min-width: 1000px) {
.main .content .contenttitle {
font-size: 2em;
}
}
@media (min-width: 0) and (max-width: 1000px) {
.main .content .contenttitle {
padding-left: 10px;
margin-top: 20px;
margin-bottom: 20px;
text-align: center;
font-size: 1.5em;
}
}
body.dark-theme .main .content .contenttitle {
color: white;
}
body:not(.dark-theme) .main .content .contenttitle {
color: black;
}
.main .content .sectiontitle {
font-size: 1.2em;
font-weight: 600;
}
.main .content .sectiontitle:focus {
outline: dotted 1px rgba(0, 0, 0, 0.1803921569);
outline-offset: 0px;
}
body.dark-theme .main .content .sectiontitle {
color: white;
}
body:not(.dark-theme) .main .content .sectiontitle {
color: black;
}
.main .content p + .sectiontitle {
margin-top: 1em;
}
/*# sourceMappingURL=index.css.map */