پرش به محتوا

مدیاویکی:Gadget-UserMessages.css: تفاوت میان نسخه‌ها

از دانشنامه علوم انسانی
imported>Dalba
top: 5em;
imported>Dalba
استفاده از نمای flex تا در همهٔ نمایشگرها از پهنای صفحه استفاده کند
خط ۱: خط ۱:
#p-warn h3 span a {
#p-warn .menu {
  margin-top: 6px;
    position: fixed;
    top: 5em;
}
}


#p-warn .menu {
#p-warn .menu ul {
  left: initial;
    display: flex;
  width: 450px;
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    justify-content: flex-start;
    max-height: 80vh;
    overflow-x: scroll;
}
}


#p-warn .menu li {
  line-height: 0.6em;
  float: right;
  width: 225px;
}


#p-warn .menu li.sep {
#p-warn h3 span a {
   width: 450px;
   margin-top: 6px;
}
}


خط ۲۴: خط ۲۶:


.p-warn-param { padding: 0!important; }
.p-warn-param { padding: 0!important; }
@media only screen and (min-width:1024px) {
    #p-warn .menu {
        position: fixed;
        top: 5em;
        overflow-y: scroll;
        max-height: 90vh;
    }
    #p-warn .menu li{
        width: 20%;
    }
    #p-warn .menu,
    #p-warn .menu li.sep {
        width: 100%;
    }
}

نسخهٔ ۹ نوامبر ۲۰۱۸، ساعت ۰۸:۱۰

#p-warn .menu {
    position: fixed;
    top: 5em;
}

#p-warn .menu ul {
    display: flex;
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    justify-content: flex-start;
    max-height: 80vh;
    overflow-x: scroll;
}


#p-warn h3 span a {
  margin-top: 6px;
}

#p-warn .p-warn-param {
  margin-right: 3px;
  color: orange;
}

.p-warn-param { padding: 0!important; }