MediaWiki:Gadget-faith-index.css

来自SOKA CAFE

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* MediaWiki:Gadget-faith-index.css */
.faith-index-body {
  background: linear-gradient(135deg, #0052a5 0%, #f9e300 50%, #d40000 100%);
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-family: 'Segoe UI','Microsoft YaHei',sans-serif;
}

.faith-index-container {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  text-align: center;
  margin: 0 auto;
}

.faith-index-container h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2.2rem;
  font-weight: 600;
}

.faith-index-container .subtitle {
  color: #34495e;
  margin-bottom: 30px;
  font-size: 1rem;
}

.faith-index-container .input-group { margin-bottom: 25px; text-align: left; }

.faith-index-container label {
  display: block;
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 500;
}

.faith-index-container input {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.5);
  color: #2c3e50;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.5);
  box-sizing: border-box;
}

.faith-index-container input:focus {
  outline: none;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 3px rgba(44,62,80,0.2);
}

.faith-index-container button {
  background: linear-gradient(to right, #34495e, #2c3e50);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(44,62,80,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.faith-index-container button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44,62,80,0.4);
}

.faith-index-container button:active { transform: translateY(0); }

.faith-index-container button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.faith-index-container .loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top: 2px solid #fff;
  animation: faith-index-spin 1s linear infinite;
}

@keyframes faith-index-spin {
  0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }
}

.faith-index-container .result {
  margin-top: 30px;
  padding: 25px;
  border-radius: 15px;
  background: rgba(255,255,255,0.3);
  display: none;
  animation: faith-index-fadeIn 0.5s ease;
}

@keyframes faith-index-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faith-index-container .result h2 { color: #2c3e50; margin-bottom: 15px; }

.faith-index-container .score {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 15px 0;
  color: #2c3e50;
}

.faith-index-container .comment {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 15px 0;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.4);
  text-align: left;
  line-height: 1.5;
}

.faith-index-container .meter {
  height: 20px;
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}

.faith-index-container .meter-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
  background: linear-gradient(to right, #0052a5, #f9e300, #d40000);
}

.faith-index-container .ranges {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #34495e;
  font-size: 0.85rem;
}

.faith-index-container .footer { margin-top: 30px; color: #34495e; font-size: 0.9rem; }

.faith-index-container .error {
  color: #d9534f;
  background: rgba(217,83,79,0.1);
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
}

@media (max-width: 600px) {
  .faith-index-container { padding: 25px; }
  .faith-index-container h1 { font-size: 1.8rem; }
}