MediaWiki: Tweeki.css: Unterschied zwischen den Versionen

Aus Herrenhäuser
Wechseln zu: Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:
.navbar {
.navbar {
     background:white !important;  
     background:white !important;  
}
.nav-link, .nav-link a:visited, .dropdown-item, .dropdown-item a:visited, .navbar-light .navbar-brand, .navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover {
  color: rgba(0,0,0,.9) !important;
  text-decoration: none !important;
}
}


Zeile 48: Zeile 43:
body.rootpage-Häuser .mw-parser-output > p > a {
body.rootpage-Häuser .mw-parser-output > p > a {
     font-size: 1.15rem;
     font-size: 1.15rem;
}
p {
    max-width: 40em;
}
}


Zeile 105: Zeile 96:
.navbar-brand {
.navbar-brand {
     padding: 0;
     padding: 0;
      
     height: 3.4rem;
 
     img {
     img {
         margin: 0;
         margin: 0;
         height: 3.4rem;
        width: auto;
     }  
         height: 100%;
    }
}
@media all and (max-width: 1400px) {
    .navbar-brand {
        --w: 2.8rem;
 
        width: var(--w);
        height: var(--w);
        overflow: hidden;
     }
}
}


Zeile 237: Zeile 239:
}
}


/* TODO: Substitute by generic class for manorhouse details page */
/* TODO: Assign to generic class for details pages */
.page-Herrenhaus_der_Familie_Richter #mw-content-text .mw-parser-output {
#mw-content-text .mw-parser-output {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
Zeile 244: Zeile 246:
     gap: 4rem;
     gap: 4rem;
}
}
.page-Herrenhaus_der_Familie_Richter #mw-content-text .subpagelist ul {
#mw-content-text .subpagelist ul {
     list-style: none !important;
     list-style: none !important;
     position: sticky;
     position: sticky;
Zeile 252: Zeile 254:
     font-size: 1.05rem;
     font-size: 1.05rem;
}
}
.page-Herrenhaus_der_Familie_Richter #mw-content-text .subpagelist li {
#mw-content-text .subpagelist li {
     margin-bottom: 0.375rem;
     margin-bottom: 0.375rem;
}
}
.page-Herrenhaus_der_Familie_Richter #mw-content-text .subpagelist a:hover {
#mw-content-text .subpagelist a:hover {
     text-decoration: none !important;
     text-decoration: none !important;
}
}
.page-Herrenhaus_der_Familie_Richter #mw-content-text .content {
#mw-content-text .content {
     flex: 1 0 0;
     flex: 1 0 0;
}
}
.page-Herrenhaus_der_Familie_Richter #mw-content-text .content > p {
#mw-content-text .content > p {
     max-width: none !important;
     max-width: none !important;
}
}
.page-Herrenhaus_der_Familie_Richter #mw-content-text .content iframe {
#mw-content-text .content iframe {
     width: 100%;
     width: 100%;
     height: 75vh;
     height: 75vh;
}
}
 
#mw-content-text th, #mw-content-text td {
.content th, .content td {
    vertical-align: top !important;
     padding: 2rem 0 !important;
     padding: 2rem 0 !important;
}
}
.content th:not(:last-of-type),
#mw-content-text th:not(:last-of-type),
.content td:not(:last-of-type) {
#mw-content-text td:not(:last-of-type) {
     padding-right: 4rem !important;
     padding-right: 4rem !important;
}
}
.content tr {
#mw-content-text tr {
     background-color: transparent !important;
     background-color: transparent !important;
}
}
.content tr:nth-of-type(4) td .btn {
#mw-content-text tr:nth-of-type(4) td .btn {
     display: block;
     display: block;
     flex: none;
     flex: none;
}
}
.content tr:nth-of-type(4) td small {
#mw-content-text tr:nth-of-type(4) td small {
     display: block;
     display: block;
     margin-top: 1.5rem;
     margin-top: 1.5rem;
}
}
.content tr:nth-of-type(4) td .btn-group {
#mw-content-text tr:nth-of-type(4) td .btn-group {
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
Zeile 293: Zeile 295:
     width: 100%;
     width: 100%;
}
}
.content tr:nth-of-type(4) .floatnone img {
#mw-content-text tr:nth-of-type(4) .floatnone img {
   height: 13.75rem !important;
   height: 13.75rem !important;
}
}
.content .floatnone a,
#mw-content-text td:nth-of-type(2) .image,
.content .floatnone img {
#mw-content-text td:nth-of-type(2) .image img {
    min-width: 20vw;
    height: auto;
}
#mw-content-text td:nth-of-type(2) .image + .image {
    margin-top: 1rem;
}
#mw-content-text .floatnone a,
#mw-content-text .floatnone img {
     display: block;
     display: block;
     width: 100%;
     width: 100%;
     height: auto !important;
     height: auto !important;
     object-fit: cover;
     object-fit: cover;
}
#mw-content-text ol li small {
    margin-top: 0.5rem !important;
}
}


Zeile 380: Zeile 393:
#navbar .nav-item {
#navbar .nav-item {
     padding: 0.25rem 0.125rem;
     padding: 0.25rem 0.125rem;
}
#navbar .nav-item > a {
    white-space: nowrap;
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
}
#navbar .dropdown-item.active,
#navbar .dropdown-item.active,
Zeile 442: Zeile 449:
     flex-wrap: wrap;
     flex-wrap: wrap;
     justify-content: space-between;
     justify-content: space-between;
    gap: 1rem;
     padding: 0;
     padding: 0;
     max-width: var(--max-width);
     max-width: var(--max-width);
Zeile 486: Zeile 494:
     font-weight: 400;
     font-weight: 400;
     margin-bottom: 0.75em;
     margin-bottom: 0.75em;
}
#bodyContent h3 + p,
#bodyContent h4 + p,
#bodyContent h5 + p,
#bodyContent h6 + p {
    font-size: 1.33rem;
}
}
#firstHeading,
#firstHeading,
#bodyContent h1,
#bodyContent h1 {
#bodyContent h5 {
     font-size: 2.66rem;
     font-size: 2.66rem;
}
}
#bodyContent h2 {
#bodyContent h2,
     font-size: 2.33rem;
#bodyContent h5 {
     font-size: 2rem;
}
}
#bodyContent h3 {
#bodyContent h3 {
     font-size: 2rem;
     font-size: 1.5rem;
}
}
#bodyContent h4 {
#bodyContent h4 {
     font-size: 1.66rem;
     font-size: 1.33rem;
}
 
#bodyContent p {
    font-size: 1rem;
}
#bodyContent small {
    font-size: 0.85rem;
}
}



Version vom 10. September 2024, 09:26 Uhr

/* CSS placed here will affect users of the Tweeki skin */
.navbar {
    background:white !important; 
}

@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;300;400;500&display=swap");

:root {
    --color-primary: #264190;
    --color-secondary: #F15025;
    
    --max-width: 1580px;
}

html {
    font-size: 18px;
    scroll-padding-top: 1.5rem !important;
    position: relative;
    overflow-x: hidden;;
    overflow-y: scroll;
}
body {
    font-family: "Fira Sans", Arial, Helvetica !important;
}
@media all and (max-width: 992px) {
    html {
        font-size: 16px;
    }
}
@media all and (max-width: 496px) {
    html {
        font-size: 14px;
    }
}

body.rootpage-Hauptseite #firstHeading {
    display: none;
}
body.rootpage-Häuser .mw-parser-output > p {
    border: 1px solid #C0C3C9;
    padding: 0.75rem 1rem;
}
body.rootpage-Häuser .mw-parser-output > p > a {
    font-size: 1.15rem;
}

table {
    border-collapse: collapse;
    row-gap: 0;
    background-color: transparent !important;
    border: none !important;
}
table tr:nth-of-type(odd) {
    background-color: #F0F1F5;
}
table th, table td {
    padding: 0.5rem 0.75rem !important;;
    background-color: transparent !important;
    border: none !important;
}

input, textarea {
    padding: 0.5rem;
    border: 1px solid #C0C3C9 !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
}
input:focus, textarea:focus {
    outline: none;
}

code {
    color: var(--color-secondary) !important;
}

body .oo-ui-widget-enabled [type="radio"]:hover + span,
body .oo-ui-widget-enabled [type="checkbox"]:hover + span {
    border-color: var(--color-primary) !important;
}
body .oo-ui-widget-enabled [type="radio"]:checked + span {
    border-color: var(--color-primary) !important;
}
body .oo-ui-widget-enabled [type="checkbox"]:checked + span {
    background-color: var(--color-primary) !important;
    border: none !important;
}

.oo-ui-labelElement-label:empty {
    display: none;
}

.card-body {
    padding: 0;
}

.navbar-brand {
    padding: 0;
    height: 3.4rem;

    img {
        margin: 0;
        width: auto;
        height: 100%;
    }
}
@media all and (max-width: 1400px) {
    .navbar-brand {
        --w: 2.8rem;

        width: var(--w);
        height: var(--w);
        overflow: hidden;
    }
}

.dropdown-item .fa {
    display: none !important;
    visibility: collapse !important;
}

.ui-ooMenu,
.ui-ooMenu li {
    font-size: 0.9rem !important;
    border: none !important;
}
.ui-ooMenu li {
    margin-left: 0.15rem;
}

.ui-state-hover {
    background-color: var(--color-primary) !important;
    color: white !important;
}

.btn-group > *:not(:last-child) {
    margin-right: 0.25rem;
}
.oo-ui-buttonElement-button {
    color: var(--color-primary) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
}
.btn-primary,
.mw-ui-button,
.oo-ui-inputWidget-input.oo-ui-buttonElement-button {
    padding: 0.375rem 1.5rem !important;
    background-color: var(--color-primary) !important;
    color: white !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.35em !important;
    border: none !important;
    border-radius: 0.3rem !important;
    text-transform: uppercase;
}
.mw-ui-button:hover, .mw-ui-button:active,
.btn-primary:hover, .btn-primary:active,
.oo-ui-inputWidget-input.oo-ui-buttonElement-button:hover, .oo-ui-inputWidget-input.oo-ui-buttonElement-button:active {
    background-color: var(--color-primary) !important;
    text-decoration: none !important;
    filter: brightness(0.9);
}
.oo-ui-buttonElement-button {
    background-color: white !important;
    color: var(--color-primary) !important;
}

.editOptions p {
    margin-top: 1rem;
    line-height: 1.5em;
}

.ui-ooMenu a {
    font-size: 0.85rem !important;
}
.ui-ooMenu-item {
    padding: 0.05rem 0.375rem !important;
}
.ui-ooMenu-item:hover {
    background-color: var(--color-primary) !important;
}
.ui-entityselector-notfound {
    user-select: none !important;
    pointer-events: none !important;
}

.mw-editsection-visualeditor {
    color: var(--color-primary);
}
.mw-body-content {
    font-size: 0.9rem !important;
}
.mw-body-content a {
    color: var(--color-primary);
}
.mw-contributions-list li:not(:last-child) {
    margin-bottom: 0.5rem;
}
.mw-contributions-user-tools a {
    color: var(--color-primary) !important;
}

.navbar-toggler {
    padding: 0.375rem 0.5rem;
}

.oo-ui-fieldLayout-field {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.oo-ui-fieldLayout-field > * {
    width: fit-content !important;
}
.oo-ui-fieldLayout-field > .oo-ui-inputWidget,
.oo-ui-fieldLayout-field > .oo-ui-actionFieldLayout-input {
    flex: 1 0 0;
}
.oo-ui-fieldLayout-field + * > .oo-ui-labelElement-label {
    margin-left: 1.5rem;
}

.oo-ui-panelLayout {
    border:  none !important;
}

.card-title {
    margin-top: 0 !important;
}

.mw-prefs-buttons {
    box-shadow: none;
}

.mw-changeslist table {
    margin-left: 0 !important;
}

/* TODO: Assign to generic class for details pages */
#mw-content-text .mw-parser-output {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 4rem;
}
#mw-content-text .subpagelist ul {
    list-style: none !important;
    position: sticky;
    margin: 0 !important;
    padding: 0 !important;
    height: fit-content;
    font-size: 1.05rem;
}
#mw-content-text .subpagelist li {
    margin-bottom: 0.375rem;
}
#mw-content-text .subpagelist a:hover {
    text-decoration: none !important;
}
#mw-content-text .content {
    flex: 1 0 0;
}
#mw-content-text .content > p {
    max-width: none !important;
}
#mw-content-text .content iframe {
    width: 100%;
    height: 75vh;
}
#mw-content-text th, #mw-content-text td {
    vertical-align: top !important;
    padding: 2rem 0 !important;
}
#mw-content-text th:not(:last-of-type),
#mw-content-text td:not(:last-of-type) {
    padding-right: 4rem !important;
}
#mw-content-text tr {
    background-color: transparent !important;
}
#mw-content-text tr:nth-of-type(4) td .btn {
    display: block;
    flex: none;
}
#mw-content-text tr:nth-of-type(4) td small {
    display: block;
    margin-top: 1.5rem;
}
#mw-content-text tr:nth-of-type(4) td .btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#mw-content-text tr:nth-of-type(4) .floatnone img {
   height: 13.75rem !important;
}
#mw-content-text td:nth-of-type(2) .image,
#mw-content-text td:nth-of-type(2) .image img {
    min-width: 20vw;
    height: auto;
}
#mw-content-text td:nth-of-type(2) .image + .image {
    margin-top: 1rem;
}
#mw-content-text .floatnone a,
#mw-content-text .floatnone img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: cover;
}
#mw-content-text ol li small {
    margin-top: 0.5rem !important;
}

.toclevel-1 span {
    font-size: 1rem;
}
.toclevel-2 span {
    font-size: 0.9rem;
}

#mw-navigation,
#contentwrapper,
#footer {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

#map_leaflet_1 {
    height: 24rem !important;
}

#maincontentwrapper {
    padding-top: 0 !important;
}
#maincontentwrapper p a[href]:not(.btn), #maincontentwrapper blockquote a[href]:not(.btn),
#maincontentwrapper table a[href]:not(.btn),
#maincontentwrapper ul a[href]:not(.btn), #maincontentwrapper ol a[href]:not(.btn) {
    color: var(--color-primary) !important;
}

#contentwrapper {
    padding-top: 2rem;
    max-width: var(--max-width);
}
#contentwrapper > .row {
    display: flex;
    flex-direction: row-reverse;
}

#sidebar-right {
    top: 1rem;
    padding-top: 1.25rem;
    padding-right: 4rem;
    width: fit-content !important;
}
#sidebar-right .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}
#sidebar-right .nav-link {
    margin-bottom: 0.5rem;
}
#sidebar-right .nav-link.active {
    font-weight: 500;
}

#contentSub, #contentSub a {
    margin-left: 0;
    color: var(--color-primary);
}

#mw-toc-heading {
    display: none !important;
}

#navbar {
    flex-grow: 0 !important;
}
#navbar a {
    font-size: 0.9rem;
    text-transform: uppercase;
}
#navbar a::after {
    display: none !important;
}
#navbar .nav-item {
    padding: 0.25rem 0.125rem;
}
#navbar .dropdown-item.active,
#navbar .dropdown-item:active {
    background-color: var(--color-primary);
    color: white !important;;
}
#navbar .fa + * {
    display: none;
}
#navbar > a:first-child {
    margin-right: 1rem !important;
}
#navbar ul:nth-of-type(1) {
    margin-right: 1rem !important;
}
#navbar ul:nth-of-type(2) {
    order: 1;
    margin-left: 0.5rem;
}
#navbar ul:nth-of-type(2) > li > a {
    color: var(--color-primary) !important;
}
#navbar #searchform {
    order: 0;
}
#navbar .fa-cog::before {
    content: "…";
}
@media all and (max-width: 992px) {
    #navbar {
        margin-top: 1rem;
        margin-bottom: 0;
    }
    #navbar form {
        margin-top: 0.5rem;
    }
}

#mw-navigation {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
#mw-navigation input {
    min-width: 13rem;
    font-size: 0.9rem;
    font-weight: 300;
    border-width: 0.15rem !important;
    border-radius: 0 !important;
    border-color: var(--color-primary) !important;
}
#mw-navigation.fixed-top {
    position: relative;
}
#mw-navigation > .container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    max-width: var(--max-width);
}

#firstHeading {
    text-align: left;
}

#content,
#bodyContent .row > div {
    padding: 0;
}
#bodyContent .row > div:first-child {
    padding-right: 3.5rem;
}
#bodyContent .container-fluid + .container-fluid {
    margin-top: 4rem;
}

#bodyContent h1,
#bodyContent h2,
#bodyContent h3,
#bodyContent h4,
#bodyContent h5,
#bodyContent h6 {
    transform: translateY(-0.125em);
}
#bodyContent h1:not(:first-child),
#bodyContent h2:not(:first-child),
#bodyContent h3:not(:first-child),
#bodyContent h4:not(:first-child),
#bodyContent h5:not(:first-child),
#bodyContent h6:not(:first-child) {
    margin-top: 1.25em;
}
#firstHeading,
#bodyContent h1,
#bodyContent h2,
#bodyContent h3,
#bodyContent h4,
#bodyContent h5,
#bodyContent h6 {
    font-weight: 400;
    margin-bottom: 0.75em;
}
#firstHeading,
#bodyContent h1 {
    font-size: 2.66rem;
}
#bodyContent h2,
#bodyContent h5 {
    font-size: 2rem;
}
#bodyContent h3 {
    font-size: 1.5rem;
}
#bodyContent h4 {
    font-size: 1.33rem;
}

#bodyContent p {
    font-size: 1rem;
}
#bodyContent small {
    font-size: 0.85rem;
}

#bodyContent ul,
#bodyContent ol {
    margin-left: 0.75rem;
}

#mw-createaccount-join {
    margin-top: 1rem;
}

#footer {
    background-color: var(--color-primary) !important;
    color: white !important;
    font-size: 0.9rem;
}
#footer > .container {
    max-width: var(--max-width);
}
#footer > .container > .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#footer .footer-widget {
    width: fit-content;
}
#footer .footer-widget:first-of-type {
    flex: none;
    order: 1;
}
#footer .footer-widget:last-of-type {
    order: 0;
}
#footer ul * {
    color: white !important;
}
#footer ul {
    display: flex;
    gap: 1rem;
}
#footer #footer-places {
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: underline;
}
#footer #footer-poweredbyico {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
@media all and (max-width: 992px) {
    #footer ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}