MediaWiki:Common.css

From Seven Sages of Rome
Revision as of 19:03, 23 October 2024 by Noeth (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.
/* CSS placed here will be applied to all skins */
#mw-navigation {
	z-index: 999;
	border-bottom: 1px solid #e7e7e7;
	background-color: rgba(255, 255, 255, 0.2) !important;
	backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%) !important;
	-webkit-backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%);
}

.nav-link {
	color: #374151 !important;
}

.nav-link:hover {
	color: #030712 !important;
}

.page-Main_Page .contentHeader {
	display: none;
}


.card {
	height: 250px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	border-radius: 0.75rem;
}

.card:hover {
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.card-block {
	display: grid;
	align-content: space-between;
	height: 100%;
}

.primary-btn {
  margin-right: auto;
  margin-left: auto;
  background-color: #222;
  border-radius: 4px;
  border-style: none;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font-family: "Farfetch Basis","Helvetica Neue",Arial,sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  max-width: none;
  min-height: 44px;
  min-width: 10px;
  outline: none;
  overflow: hidden;
  padding: 9px 20px 8px;
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
}

.primary-btn:hover,
.primary-btn:focus {
	opacity: .75;
}

.smw-datatable select {
	background: #fff;
}

.smw-datatable th a {
	color: black;
}

#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea {
	max-width: 98% !important;
}

/* Drilldown customization */
.drilldown-btn-wrapper {
	max-width: 50%;
}
.drilldown-results {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

.drilldown-categories-wrapper {
	display: none;
}

.drilldown-filter {
	background-color: #fafafa;
    border-radius: 2px;
    padding: 5px;
    border-color: #e4e4e7;
    border-width: 1px;
    border-style: solid;
}

.drilldown-filter:hover {
    background-color: #f4f4f5; 
}
.drilldown-values-toggle {
	padding-right: 6px;
}

/* WIP banner */
.wip-alert {
    position: fixed;
    display: none;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 999;
}

/* Custom navbar breakpoint */
@media (min-width: 1350px){
    .navbar-expand-custom {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .navbar-expand-custom .navbar-nav {
        flex-direction: row;
    }
    .navbar-expand-custom .dropdown-menu {
        position: absolute;
    }
    .navbar-expand-custom .nav-link {
        padding-right: .5rem;
        padding-left: .5rem;
    }
    .navbar-expand-custom > .container {
        flex-wrap: nowrap;
    }
    .navbar-expand-custom .navbar-collapse {
        display: flex!important;
        flex-basis: auto;
    }
    .navbar-expand-custom .navbar-toggler {
        display: none;
    }
}

/* CSS to be placed in MediaWiki:Common.css */
.version-tree {
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
}

.tree-node {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    padding: 0 10px;
    position: relative;
}

.node-content {
    position: relative;
    padding: 10px 0;
}

.node-box {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 15px;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

.node-children {
    position: relative;
    margin-top: 20px;
}

/* Lines connecting nodes */
.node-children:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    border-left: 1px solid #ccc;
    height: 20px;
}

.tree-node .tree-node:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid #ccc;
    height: 10px;
}

.node-children .tree-node:first-child:after,
.node-children .tree-node:last-child:after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 10px;
    border-top: 1px solid #ccc;
}

.node-children .tree-node:first-child:after {
    right: 50%;
}

.node-children .tree-node:last-child:after {
    left: 50%;
}

.node-children .tree-node:only-child:after {
    display: none;
}

/* Horizontal line connecting siblings */
.node-children {
    position: relative;
}

.node-children:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #ccc;
}

.node-children .tree-node:only-child:before {
    height: 10px;
}