Template:Main Page/styles.css: Difference between revisions

[checked revision][checked revision]
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Genel sıfırlama, çünkü tarayıcılara güven olmaz */
/* ==================================================
  RESET & TEMEL AYARLAR
================================================== */
* {
* {
   box-sizing: border-box;
   box-sizing: border-box;
Line 6: Line 8:
body {
body {
   margin: 0;
   margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
   background-color: #f8f9fa;
   background-color: #f8f9fa;
   color: #202122;
   color: #202122;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
              Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
}
}


/* Ana sayfa kapsayıcı */
/* ==================================================
.homepage {
  ANA KAPSAYICI
   min-height: 100vh;
================================================== */
  display: flex;
.sa-mainpage {
   flex-direction: column;
   max-width: 1200px;
   justify-content: center;
   margin: 0 auto;
  align-items: center;
   padding: 16px;
  text-align: center;
}
}


/* Logo */
/* Wikipedia'deki tablo hissi */
.homepage-logo img {
.sa-box {
   width: 180px;
   background: #ffffff;
   height: auto;
   border: 1px solid #a2a9b1;
  border-radius: 2px;
  padding: 16px;
   margin-bottom: 16px;
   margin-bottom: 16px;
}
}


/* Site adı */
/* ==================================================
.homepage-title {
  HERO / GİRİŞ
================================================== */
.sa-hero {
  text-align: center;
}
 
.sa-title {
   font-size: 2.2rem;
   font-size: 2.2rem;
   font-weight: 600;
   font-weight: 600;
   margin: 0;
   margin: 0 0 8px;
}
}


/* Slogan */
.sa-tagline {
.homepage-tagline {
   font-size: 1rem;
   font-size: 1rem;
   color: #54595d;
   color: #54595d;
   margin: 8px 0 28px;
   margin: 0 0 16px;
}
 
.sa-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}
 
.sa-stats li {
  font-size: 0.95rem;
}
}


/* Arama alanı */
/* ==================================================
.homepage-search-input {
  GRID (Wikipedia ana sayfa gibi iki kolon)
   width: 360px;
================================================== */
  max-width: 90%;
.sa-grid {
   padding: 12px 14px;
   display: grid;
  font-size: 1rem;
   grid-template-columns: 1fr 1fr;
  border: 1px solid #a2a9b1;
   gap: 16px;
  border-radius: 4px;
  outline: none;
   transition: border-color 0.15s, box-shadow 0.15s;
}
}


.homepage-search-input:focus {
/* ==================================================
   border-color: #3366cc;
  BAŞLIKLAR
   box-shadow: 0 0 0 2px rgba(51,102,204,0.15);
================================================== */
.sa-box h2 {
  font-size: 1.1rem;
  font-weight: 600;
   border-bottom: 1px solid #a2a9b1;
   padding-bottom: 4px;
  margin: 0 0 8px;
}
}


/* Enter ipucu */
.sa-later {
.homepage-search-hint {
  margin-top: 6px;
   font-size: 0.85rem;
   font-size: 0.85rem;
   color: #72777d;
   color: #72777d;
  font-weight: normal;
}
/* ==================================================
  İÇERİK ALANI
================================================== */
.sa-content {
  font-size: 0.95rem;
}
/* Float temizliği (DYK, ITN vb. için) */
.sa-content::after {
  content: "";
  display: block;
  clear: both;
}
}


/* Mobil */
/* ==================================================
@media (max-width: 480px) {
  MEDYA (POTD)
   .homepage-title {
================================================== */
.sa-media img,
.sa-media video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
 
/* ==================================================
  BANNER
================================================== */
.sa-banner {
  text-align: center;
}
 
/* ==================================================
  MOBİL
================================================== */
@media (max-width: 800px) {
   .sa-grid {
    grid-template-columns: 1fr;
  }
 
  .sa-stats {
    flex-direction: column;
    gap: 4px;
  }
 
  .sa-title {
     font-size: 1.8rem;
     font-size: 1.8rem;
   }
   }
}
}