الگو:صفحهٔ اصلی/styles.css: تفاوت میان نسخه‌ها

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۶ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
.mp-topbanner {
.mp-topbanner {
    background-color: #fcfdfc;
  position: relative;
    border: 1px solid var(--wiki-dry-sage);
  background: linear-gradient(135deg, #ffffff 0%, #f4f5f0 100%);
    border-radius: 8px;
  border: 1px solid #a3b18a;
    padding: 24px 20px;
  border-top: 4px solid #588157;
    text-align: center;
  border-radius: 12px;
    box-shadow: 0 4px 12px rgba(52, 78, 65, 0.05);
  padding: 25px 20px;
    margin-bottom: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 6px 18px rgba(52, 78, 65, 0.08);
  color: #344e41;
}
 
.mp-logo-box {
  position: absolute;
  top: 15px;
  right: 20px;
}
 
.mp-logo-box img {
  max-height: 55px;
  width: auto;
}
 
.mp-welcome {
  font-size: 24px;
  font-weight: 800;
  color: #344e41;
  margin: 10px 0 15px 0;
  border: none !important;
}
}


.mp-welcome-title {
.mp-welcome-title {
    font-size: 26px;
  color: #3a5a40;
    font-weight: bold;
  background-color: #dad7cd;
    color: var(--wiki-pine-teal);
  padding: 2px 10px;
    margin-bottom: 10px;
  border-radius: 6px;
}
}


.mp-description {
.mp-description {
    font-size: 15px;
  font-size: 14px;
    color: var(--wiki-hunter-green);
  line-height: 1.9;
    line-height: 1.8;
  color: #344e41;
    margin-bottom: 15px;
  margin-bottom: 15px;
    border-bottom: 1px solid var(--wiki-dust-grey);
  padding-bottom: 12px;
    padding-bottom: 12px;
  border-bottom: 1px dashed #a3b18a;
}
 
.mp-search-container {
  margin: 15px 0;
}
 
.mp-search-container input[type="text"] {
  border: 1px solid #a3b18a !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  outline: none;
  color: #344e41;
}
 
.mp-search-container input[type="text"]:focus {
  border-color: #588157 !important;
  box-shadow: 0 0 5px rgba(88, 129, 87, 0.3);
}
 
.mp-search-container input[type="submit"] {
  background-color: #3a5a40 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 16px !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
}


.mp-search-box {
.mp-search-container input[type="submit"]:hover {
    margin: 15px 0;
  background-color: #344e41 !important;
}
}


.mp-menu {
.mp-menu {
    font-size: 14px;
  display: inline-block;
    color: var(--wiki-fern);
  margin: 8px 5px;
  font-size: 14px;
}
}


.mp-menu a {
.mp-menu a {
    color: var(--wiki-hunter-green);
  display: inline-block;
    font-weight: bold;
  color: #3a5a40 !important;
    text-decoration: none;
  font-weight: bold;
  text-decoration: none !important;
  padding: 6px 18px;
  background-color: #ffffff;
  border: 1px solid #a3b18a;
  border-radius: 20px;
  transition: all 0.2s ease;
}
}


.mp-menu a:hover {
.mp-menu a:hover {
    color: var(--wiki-pine-teal);
  background-color: #3a5a40;
    text-decoration: underline;
  color: #ffffff !important;
  border-color: #3a5a40;
}
}


#mp-upper, #mp-bottom {
.mainpage_body_box, #mp-upper {
    display: flex;
  display: flex;
    gap: 16px;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}
}


#mp-article, #mp-help {
#mp-article, #mp-help {
    flex: 1 1 67%;
  flex: 1 1 65%;
    display: flex;
  display: flex;
  flex-direction: column;
}
 
.mp-article-box, #mp-article-box, #mp-help-box,
.mainpage_box, #mp-sidebar-box {
  background: #f7f7f7;
  border: 1px solid #a3b18a;
  border-radius: 10px;
  margin-bottom: 1.2em;
  box-shadow: 0 4px 12px rgba(52, 78, 65, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
 
.mp-article-box:hover, #mp-article-box:hover, #mp-help-box:hover,
.mainpage_box:hover, #mp-sidebar-box:hover {
  box-shadow: 0 6px 16px rgba(52, 78, 65, 0.1);
  border-color: #588157;
}
 
.mp-h2,
.mainpage_box_header {
  background: linear-gradient(135deg, #3a5a40 0%, #588157 100%);
  color: #ffffff !important;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 15px;
  border-bottom: 2px solid #a3b18a;
  border-radius: 0;
  margin: 0;
}
 
.mp-h2 span,
.mainpage_box_header span {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}
 
.mp-article-footer {
  border-top: 1px dashed #a3b18a;
  text-align: center;
  font-size: 95%;
  margin-top: 15px;
  padding-top: 10px;
  color: #344e41;
}
 
#mp-left, .mainpage_body_left, #mp-sidebar {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
}
 
.mainpage_box_content {
  padding: 15px;
  color: #344e41;
  font-size: 14px;
  line-height: 1.8;
}
 
.mainpage_box > *:not(.mainpage_box_header):not(.mainpage_box_content) {
  padding: 15px;
}
 
.mainpage_box a {
  color: #3a5a40;
  text-decoration: none;
  transition: color 0.2s ease;
}
 
.mainpage_box a:hover {
  color: #588157;
  text-decoration: underline;
}
 
.mainpage_box ul, .mainpage_box ol {
  margin: 5px 15px 5px 0;
  padding: 0;
}
 
.mainpage_box li {
  margin-bottom: 6px;
  color: #344e41;
}
 
#mp-more {
  float: left;
  margin-left: 10px;
  color: #3a5a40;
  font-weight: bold;
}
 
#mp-new ol {
  margin: 10px 10px 0 0;
  padding: 0;
}
 
#mp-new ol li {
  list-style: none;
  line-height: 1.8;
  color: #344e41;
}
 
#mp-new ol li:before {
  content: "";
  line-height: 1em;
  width: 6px;
  height: 6px;
  background-color: #588157;
  float: right;
  margin: 9px 0 0 8px;
  border-radius: 50%;
}
 
#badge {
  font-weight: bold;
  color: #588157;
}
 
@media (max-width: 875px) {
  .mp-topbanner {
    margin: 10px 0;
  }
 
  .mp-welcome {
    font-size: 20px;
  }
 
  .mainpage_body_box, #mp-upper, #mp-bottom {
     flex-direction: column;
     flex-direction: column;
  }
  #mp-article, #mp-help, #mp-left, .mainpage_body_left, #mp-sidebar {
    flex: 1 1 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .mp-logo-box {
    position: static;
    margin-bottom: 10px;
  }
}
}


#mp-sidebar {
.main_foot {
    flex: 1 1 33%;
  width: 100%;
  margin-top: 15px;
  clear: both;
}
}


.mp-box {
#mp-lower {
    background: #ffffff;
  background: #F6F7F3;
    border: 1px solid var(--wiki-dust-grey);
  border: 1px solid #a3b18a;
    border-radius: 8px;
  border-radius: 10px;
    padding: 16px;
  box-shadow: 0 4px 12px rgba(52, 78, 65, 0.05);
    margin-bottom: 16px;
  overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
}


.mp-h2 {
#mp-lower .mainpage_box_content {
    padding: 10px 14px;
  text-align: center;
    border-radius: 6px;
  padding: 20px;
    background: var(--wiki-dry-sage);
  color: #344e41;
    color: var(--wiki-pine-teal);
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
    border-right: 5px solid var(--wiki-hunter-green);
}
}


@media (max-width: 875px) {
#mp-lower .mainpage_box_content img {
    #mp-upper, #mp-bottom {
  max-width: 100%;
        flex-direction: column;
  height: auto;
    }
  border-radius: 8px;
  border: 1px solid #dad7cd;
  box-shadow: 0 4px 10px rgba(52, 78, 65, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
#mp-lower .mainpage_box_content img:hover {
  transform: scale(1.005);
  box-shadow: 0 6px 15px rgba(52, 78, 65, 0.12);
}
}