Jump to content

User:Tsutomu25/sandbox/Cover2: Difference between revisions

From Detective Conan Wiki
Tsutomu25 (talk | contribs)
Created page with "<includeonly><span class="cover">{{{1}}}</span></includeonly> {{code |css= .cover, .cover a, a .cover, .cover a.new { background-color: #e6e6e6; color: #e6e6e6; text-sh..."
 
Tsutomu25 (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly><span class="cover">{{{1}}}</span></includeonly>
<includeonly><span id="spoiler-box"><a href="#spoiler-target" id="show-button" class="button"></a><a href="#" id="hide-button" class="button"></a><div id="spoiler-target"></div><span id="spoiler-text">{{{1}}}</span></span>
{{code
{{code
|css=
/* Styles for the spoiler box */
#spoiler-box{
display: inline-block;
position: relative;
background-color: #909199;
transition: 0.3s;
}


|css=
/* Styles for the buttons */
.cover, .cover a, a .cover, .cover a.new {
.button{
  background-color: #e6e6e6;
position: absolute;
  color: #e6e6e6;
top: 0px;
  text-shadow: none;
left: 0px;
  transition: color 0.2s linear, background-color 0.2s linear;
width: 100%;
height: 100%;
}
#show-button{  
display: inline-block;
z-index: 5;
}
#hide-button{
display: none;
z-index: 0;
}
 
/* Hiding the target div */
#spoiler-target{
display: none;
}
 
/* Styles to hide the spoiler text */
#spoiler-text{
opacity: 0;
transition: 0.3s;
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
}
 
/* Styles to reveal the spoiler text */
#spoiler-box:has(#spoiler-target:target){
background-color: #e3e3e5;
}
}
.cover:hover, .cover:active,
#spoiler-target:target ~ #spoiler-text{
.cover:hover .cover, .cover:active .cover {
opacity: 1;
  color: black !important;
background-color: #e3e3e5;
  background-color: transparent !important;
-webkit-user-select: text;
-ms-user-select: text;
user-select: text;
}
}
.cover:hover a, a:hover .cover,
 
.cover:active a, a:active .cover {
/* Styles to hide the show button and reveal the hide button */
  color: blue !important;
#spoiler-box:has(#spoiler-target:target) #show-button{
  background-color: transparent !important;
display: none;
z-index: 0;
}
}
.cover:hover .new, .cover .new:hover, .new:hover .cover,
#spoiler-box:has(#spoiler-target:target) #hide-button{
.cover:active .new, .cover .new:active, .new:active .cover {
display: inline-block;
  color: #BA0000 !important;
z-index: 5;
  background-color: transparent !important;
}
}
}}<noinclude>
}}</includeonly>
 
<noinclude>


<pre>{{User:Tsutomu25/sandbox/Cover2|The culprit is Gosho Aoyama}}</pre>
<pre>{{User:Tsutomu25/sandbox/Cover2|The culprit is Gosho Aoyama}}</pre>

Revision as of 10:22, 21 August 2025



{{User:Tsutomu25/sandbox/Cover2|The culprit is Gosho Aoyama}}

Results in

<a href="#spoiler-target" id="show-button" class="button"></a><a href="#" id="hide-button" class="button"></a>
The culprit is Gosho Aoyama



Results in

<a href="#spoiler-target" id="show-button" class="button"></a><a href="#" id="hide-button" class="button"></a>
The culprit is Gosho Aoyama



Results in

<a href="#spoiler-target" id="show-button" class="button"></a><a href="#" id="hide-button" class="button"></a>
The culprit is Gosho Aoyama