Difference between revisions of "MediaWiki:Common.css"

From GATE
Line 5: Line 5:
 
sup.reference:target { background-color: #ddeeff; }
 
sup.reference:target { background-color: #ddeeff; }
  
.text-line:target { background-color: #ddeeff; animation: highlight 1s ease; transition: all 0.5s ease; }
+
/*.text-line:target { background-color: #ddeeff; animation: highlight 1s ease; transition: all 0.5s ease; } */
.capoverso:target { background-color: #ddeeff; animation: highlight 1s ease; transition: all 0.5s ease; }
+
/*.capoverso:target { background-color: #ddeeff; animation: highlight 1s ease; transition: all 0.5s ease; } */
 +
:target {
 +
  animation: highlight 1s ease; 
 +
  transform: translateX(20px);   
 +
}
 +
@keyframes highlight {
 +
  0% { border-left-color: red; }
 +
  100% { border-left-color: white; }
 +
.text-line {
 +
  border-left: 40px solid white;
 +
  padding: 10px;
 +
  transition: all 0.5s ease;   
 +
  padding-right: 50px;
 +
  margin-left: -20px;   
 +
}

Revision as of 12:44, 30 October 2017

/* CSS placed here will be applied to all skins */
/* make the Cite extension list of references look smaller and highlight clicked reference in blue */
ol.references { font-size: 90%; }
ol.references li:target { background-color: #ddeeff; }
sup.reference:target { background-color: #ddeeff; }

/*.text-line:target { background-color: #ddeeff; animation: highlight 1s ease; transition: all 0.5s ease; } */
/*.capoverso:target { background-color: #ddeeff; animation: highlight 1s ease; transition: all 0.5s ease; } */
:target {
  animation: highlight 1s ease;  
  transform: translateX(20px);     
}
@keyframes highlight {
  0% { border-left-color: red; }
  100% { border-left-color: white; }
.text-line {
  border-left: 40px solid white;
  padding: 10px;
  transition: all 0.5s ease;     
  padding-right: 50px;
  margin-left: -20px;    
}