MediaWiki:Common.css

From MDrivenWiki
Revision as of 15:58, 19 December 2023 by Edgar (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
This page was edited 90 days ago on 08/12/2024. What links here
.custom-header {
    border-radius: 4px;
    border: 1px solid #E3E8EE;
    background-color: #112B3C; /* Updated background color */
    height: 68px;
    width:100%;
     
}

.p-logo {
    margin-left: 25px;
}

#p-personal .p-personal-tools, .p-personal .p-personal-tools {
    text-align: center !important;
    margin-left: 100px;
}

#p-personal .p-personal-tools a, .p-personal .p-personal-tools a {
    color: white !important; 
}

#pt-userdashboard,
#pt-pageassignments {
    display: none;
}

.search-bar {
    margin-right: 20px;
}

.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.searchbar-autocomplete-results {
    top: 70px !important; 
}

.custom-footer-bg {
    background-color: #111827;
    height: 100%;
    
}

#user-info {
    visibility: hidden;
}

#user-info.ready {
    visibility: visible;
}

body.page-Main_Page .firstHeading {
    display: none;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('https://newwiki.mdriven.net/resources/outfit/Outfit-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}


body {
    font-family: 'Outfit', sans-serif;
}

/* Hide search bar on mobile screens */
@media (max-width: 767px) {
    .search-bar {
        display: none !important;
    }
}

.offcanvas-right {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #112B3C;
    overflow-y: auto;
    transition: right 0.3s;
    z-index: 1000; /* Ensure the menu is on top of other elements */
}

.offcanvas-right.show {
    right: 0;
}

.offcanvas-right ul.p-personal-tools {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
}

.offcanvas-right ul.p-personal-tools li {
    margin-bottom: 15px; /* Add some space between the links */
}

.offcanvas-right ul.p-personal-tools li a {
    color: #ffffff; 
    text-decoration: none;
    font-size: 18px; 
    display: block; 
    transition: background-color 0.3s; 
}

.offcanvas-right ul.p-personal-tools li a:hover {
    background-color: #1C4E63; /* Change background color on hover */
}

#contentContainer.show-nav-menu {
    display: flex;
}

#contentContainer.show-nav-menu #navMenu {
    flex: 0 0 300px; 
    background-color: #F3F6F9;
    overflow-y: auto;
}

#contentContainer.show-nav-menu #bodyContent {
    flex-grow: 1;
    padding: 20px;
}

#contentContainer.show-nav-menu .collapsible-menu .menu-item .submenu {
    display: none; 
}

#contentContainer.show-nav-menu .collapsible-menu .menu-item .menu-toggle {
    cursor: pointer;
}


#navMenu {
    width: 200px;
}

.menu-section {
    margin-bottom: 2px;
}

.menu-header {

    padding: 1px;
    cursor: pointer;
}

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu li {
	
    padding: 0px;
}

.close-button {
    font-size: 2em;
    background: none;
    border: none;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
.menu-item {
    margin: 2px 0;
}


@media (max-width: 767px) {
    #p-personal .p-personal-tools, .p-personal .p-personal-tools {
        margin-top: 70px;
    }
}

/* Card styles */
.card {
    width: 361px;
    height: 183px;
    padding: 24px;
    background: #F3F6F9;
    border-radius: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    display: inline-flex;
}

.card-header {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    display: flex;
    margin-top:10px;
}

.card-header-title {
    color: #44546F;
    font-size: 14px;
    font-weight: 400;
    word-wrap: break-word;
}

.card-header-subtitle {
    color: #112B3C;
    font-size: 20px;
    font-weight: 700;
    word-wrap: break-word;
}

.card-content {
    width: 313px;
    height: 50px;
    color: black;
    font-size: 14px;
    font-weight: 300;
    word-wrap: break-word;
}

.card-action {
    align-self: stretch;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    display: inline-flex;
    margin-top:10px;
}

.card-action-text {
    color: #1A50AD;
    font-size: 14px;
    font-weight: 600;
    word-wrap: break-word;
    margin-right: 10px;
}

.card-arrow {
    fill: none;
    stroke: #1A50AD;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.mediawiki.page-Documentation_Documentation nav.breadcrumbtop, 
        body.mediawiki.page-Documentation_Documentation div.firstTitle {
            display: none !important;
}
body.mediawiki.page-Training_Training nav.breadcrumbtop, 
        body.mediawiki.page-Training_Training div.firstTitle {
            display: none !important;
}
body.mediawiki.page-Training_1000_Steps_Program nav.breadcrumbtop, 
        body.mediawiki.page-Training_1000_Steps_Program div.firstTitle {
            display: none !important;
}
body.mediawiki.page-Training_MDriven_Levels_Stars_Certificates nav.breadcrumbtop, 
        body.mediawiki.page-Training_MDriven_Levels_Stars_Certificates div.firstTitle {
            display: none !important;
        }
body.mediawiki.page-Training_1000_Steps_Program nav.breadcrumbtop, 
        body.mediawiki.page-Training_1000_Steps_Program div.firstTitle {
            display: none !important;
        }
body.mediawiki.page-BestPractices_Best_Practices nav.breadcrumbtop, 
        body.mediawiki.page-BestPractices_Best_Practices div.firstTitle {
            display: none !important;
        }
body.mediawiki.page-Documentation_Model_Examples nav.breadcrumbtop, 
        body.mediawiki.page-Documentation_Model_Examples div.firstTitle {
            display: none !important;
        }
body.mediawiki.page-Glossary nav.breadcrumbtop, 
        body.mediawiki.page-Glossary div.firstTitle {
            display: none !important;
        }
body.mediawiki.page-Documentation_Q_and_A nav.breadcrumbtop, 
        body.mediawiki.page-Documentation_Q_and_A div.firstTitle {
            display: none !important;
        }
        
body.user-anon div#p-contentnavigation {
    display: none !important;
}

.mobile-menu-button {
  display: none;
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border: none;
}

#navMenu.collapsible-menu {
  display: block;
}


@media screen and (max-width: 767px) {
  .mobile-menu-button {
    display: block;
  }

  #navMenu.collapsible-menu {
    display: none;
  }

}

body.ns-special .mw-body,
body.action-edit .mw-body,
body.ns-MediaWiki .mw-body {
    padding-left: 20px !important;
}

.menu-item a, .menu-header, .submenu li a {
    transition: background-color 0.3s ease;
}

.menu-item a:hover, .menu-header:hover, .submenu li a:hover,
.menu-item a.active, .menu-header.active, .submenu li a.active {
    background-color: #e0e0e0;
    cursor: pointer;
}


#navMenu .menu-item {
    /** padding: 5px 10px; **/
    margin: 2px 0;
    border: 1px solid transparent;
    border-radius: 5px; 
    transition: background-color 0.3s;
  
}

#navMenu .menu-item:hover {
    background-color: #d3d3d3;
 
}

#navMenu .menu-item.current-page {
    background-color: #d3d3d3;
  
}

#navMenu .menu-item a {
    color: black; 
    text-decoration: none; 
    display: block;
    padding-right: 20px;
}

body.ns-3002 #navMenu,
body.ns-3002 #catlinks,
body.ns-3002 .custom-footer-bg.row,
body.ns-3002 .custom-header.row,
body.ns-3002 .mobile-menu-button {
    display: none !important;
}

/* Enhanced styling for the TOC */
#toc {
    position: fixed;
    right: 10px;
    top: 100px;
    width: 220px;
    padding: 15px;
    background-color: transparent;
    box-shadow: none;
    color: black;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    margin-top:60px;
}

#toc .toctitle h2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center; 
}

#toc ul {
    list-style: none;
    padding: 0;
}

#toc li a {
    color: #0060A0;
    text-decoration: none;
    display: block; 
    padding: 5px;
}

#toc li a:hover, #toc li a:focus {
    background-color: #e0e0e0;
    border-radius: 4px; 
}


#toctogglecheckbox, .toctogglelabel, .toctogglespan::before, .toctogglespan::after {
    display: none;
}

#toc .tocnumber {
    display: none;
}

.has-toc .mw-body-content {
    padding-right: 240px;
}

@media screen and (max-width: 767px) {
    #toc {
        display: none;
    }

    .has-toc .mw-body-content {
        padding-right: 0;
    }
}

.toc .toctitle {
    text-align: left !important;
}
.toc { 
 border: none !important;
 padding-top: 20px !important; 
	
}

@media screen and (max-width: 768px) {
    #searchContainer {
      width: 80vw;
    }
  
    .menu-header, .menu-item {
      font-size: 4vw;
    }
  
    #namespaceTitle, .menu-header {
      margin-left: 5vw;
    }
  }
  
  @media screen and (max-width: 480px) {
    #searchContainer {
      width: 90vw;
    }
  
    .menu-header, .menu-item {
      font-size: 5vw;
    }
  
    #namespaceTitle, .menu-header {
      margin-left: 0vw;
    }
  
  }
  
  @media screen and (max-width: 768px) {
    #contentContainer.show-nav-menu #navMenu {
        flex: 0 0 90% !important;
        background-color: #F3F6F9 !important;
        overflow-y: auto !important;
    }

    #contentContainer.show-nav-menu #bodyContent {
        flex-grow: 1 !important;
        padding: 20px !important;
        width: 70% !important;
    }

    pre {
        width: 100% !important;
    }
}
This page was edited 90 days ago on 08/12/2024. What links here