MediaWiki:Common.css: Difference between revisions

From Meanderings
Jump to navigation Jump to search
m test
Added flex-grid layout classes for div
 
(6 intermediate revisions by the same user not shown)
Line 61: Line 61:
     display: inline-block;  
     display: inline-block;  
     position: relative;
     position: relative;
    text-decoration:underline;
    text-decoration-style: dotted;
}
}


Line 71: Line 73:
     position:absolute;
     position:absolute;
     top:-40px;
     top:-40px;
/*  width:15em; */
    left:-40px;
    width:150px;
     border:1px solid gray;
     border:1px solid gray;
     background-color:#eef;  
     background-color:#eef;  
/*  text-align: center; */
     padding:2px 7px 2px 7px;
     padding:2px;
}
}


.modalBox:target {
/* Modal End */
    opacity: 1;
    pointer-events: auto;
}
 
.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  /* background: rgba(0,0,0,0.8); */
    z-index: 99999;
    opacity:0;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}
 
.modalDialog:target {
    opacity:1;
    pointer-events: auto;
}


.modalDialog > div {
/* Flex Grid Layout Start */
    position: relative;
    width: 50%;
    height: auto;
    margin: 10% auto;
  /* padding: 5px 20px 13px 20px; */
    border-radius: 10px;
  /*  background: #fff; */
  /*  background: linear-gradient(#fff, #999); */
}


.modalDialog img {
div.flex-container {
     width:100%;
    display: flex;
     height: auto;
    flex-direction: column;
     width: 100%;  
     align-items: center;
    border: 1px solid #aaa;
    box-sizing: border-box;
    padding: 2px 2px 0 2px;
}
}


.close {
div.grid-row {
     background: #606061;
     display: grid;  
    color: #fff;
     grid-column-gap: 2px;
    line-height: 25px;
     width: 100%;
    position: absolute;
     margin: 0 0 2px 0;
     right: -12px;
    text-align: center;
    top: -10px;
     width: 24px;
    text-decoration: none;
     font-weight: bold;
    border-radius: 12px;
    box-shadow: 1px 1px 3px #000;
}
}


.close:hover {  
div.grid-cell {
     background: #00d9ff;
     background-color: #f8f8f8;
    padding: 2px;  
}
}


/* Modal End */
/* Flex Grid Layout End */


/* Remove the [edit|edit source] links next to each section */
/* Remove the [edit|edit source] links next to each section */
.mw-editsection { display:none; }
.mw-editsection { display:none; }

Latest revision as of 03:17, 5 November 2024

/* CSS placed here will be applied to all skins */

img.forty-percent-width {
    width: 40%;
    height: auto;
}

img.eighty-percent-width {
    width: 80%;
    height: auto;
}

img.full-width {
    width: 100%;
    height: auto;
}

.wrath-table-header {
    background-color: #eee;
}

.wrath-table-cell {
    background-color: #f8f8f8;
}

.text-center {
    text-align: center;
}

/* UL LI Table */

.div-table {
    width: 100%; 
    border: 1px solid #aaa; 
    margin: 0; 
    padding: 0 2px 2px 0; 
    box-sizing: border-box;
}

.ul-row {
    display: flex; 
    width: 100%; 
    margin: 0; 
    padding: 0; 
    list-style-type: none; 
    list-style-image: none;
}

.li-col {
    margin: 2px 0 0 2px; 
}

.li-col span {
    padding: 1px; 
    margin: 2px;
}

/* Modal Start */

div.modalInfo {
    display: inline-block; 
    position: relative;
    text-decoration:underline;
    text-decoration-style: dotted;
}

div.modalInfo span {
    display: none;
}

div.modalInfo:hover span {
    display:block;
    position:absolute;
    top:-40px;
    left:-40px;
    width:150px;
    border:1px solid gray;
    background-color:#eef; 
    padding:2px 7px 2px 7px;
}

/* Modal End */

/* Flex Grid Layout Start */

div.flex-container {
    display: flex;
    flex-direction: column; 
    width: 100%; 
    align-items: center; 
    border: 1px solid #aaa; 
    box-sizing: border-box; 
    padding: 2px 2px 0 2px;
}

div.grid-row {
    display: grid; 
    grid-column-gap: 2px;
    width: 100%;  
    margin: 0 0 2px 0;
}

div.grid-cell {
    background-color: #f8f8f8;
    padding: 2px; 
}

/* Flex Grid Layout End */

/* Remove the [edit|edit source] links next to each section */
.mw-editsection { display:none; }