2 Commits

Author SHA1 Message Date
asus
ea781e2aac css fill possible for mouses, unlikely for banners 2023-11-19 17:53:47 +01:00
asus
f027ca2752 start test mouses in css 2023-11-19 16:35:11 +01:00
5 changed files with 120 additions and 43 deletions

View File

@@ -592,6 +592,7 @@
<!-- <!--
BANNER 4 BANNER 4
--> -->
@@ -647,8 +648,14 @@
<figure class="frames_container mouse" id="mouse_test">
<div class="ascii frame f1"></div><div class="ascii frame f2"></div><div class="ascii frame f3"></div><div class="ascii frame f4"></div>
</figure>
<p>here</p>
<div id="test"></div>
</body> </body>
</html> </html>

View File

@@ -6,14 +6,12 @@
.frames_container { .frames_container {
display: grid; display: grid;
width: fit-content; width: fit-content;
/* /*
border: 1px solid blue; border: 1px solid blue;
*/ */
} }
pre.frame.hide { .frame {
display: none;
}
pre.frame {
position: relative; position: relative;
grid-column: 1; grid-column: 1;
grid-row: 1; grid-row: 1;
@@ -35,9 +33,9 @@ pre.frame {
animation-direction: normal; animation-direction: normal;
} }
pre.frame.f2 {animation-delay: calc(var(--tframes) * 25/100);} .frame.f2 {animation-delay: calc(var(--tframes) * 25/100);}
pre.frame.f3 {animation-delay: calc(var(--tframes) * 50/100);} .frame.f3 {animation-delay: calc(var(--tframes) * 50/100);}
pre.frame.f4 {animation-delay: calc(var(--tframes) * 75/100);} .frame.f4 {animation-delay: calc(var(--tframes) * 75/100);}
@keyframes ascii_frame { @keyframes ascii_frame {
0% {opacity: 1;} 0% {opacity: 1;}

View File

@@ -1,24 +1,97 @@
#test {
border: 1px solid blue;
width: 100px;
height: 100px;
background-image: url(" \
data:image/svg+xml;utf8, \
<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='50px' width='100%'>\
<text x='0' y='15'>\
I love SVG!\
</text>\
</svg>");
}
/*
#test::after { #test::after {
content: "  \a   \a   \a  \a \a  \a  \a  \a  \a    \a    \a  \a     \a    \a  \a "; content: "  \a   \a   \a  \a \a  \a  \a  \a  \a    \a    \a  \a     \a    \a  \a ";
white-space: pre-wrap; white-space: pre;
/* }
*/
  #mouse_test .frame.f1::before {
  content: " \A \A  \A \A \A   \A   \A    \A    \A   \A   \A    \A   \A  ";
   /*
 

 
 
 
 
   
   
 
    
   
 
 
  

  
  
   
   
  
  
   
  
 
*/ */
} }
#mouse_test .frame.f2::before {
content: " \A \A  \A   \A \A   \A   \A    \A    \A  \A   \A    \A   \A  ";
/*
 
  

  
  
   
   
 
  
   
  
 
*/
}
#mouse_test .frame.f3::before {
content: " \A \A  \A   \A \A   \A   \A    \A    \A   \A   \A    \A   \A  ";
/*
 
  

  
  
   
   
  
  
   
  
 
*/
}
#mouse_test .frame.f4::before {
content: " \A   \A  \A   \A    \A   \A   \A    \A    \A    \A    \A  ";
/*

  
 
  
   
  
  
   
   
   
   
 
*/
}

View File

@@ -1,2 +0,0 @@

View File

@@ -36,7 +36,8 @@ h3 { margin: 20px 0px; font-size: 1.75rem; }
h4 { margin: 20px 0px; font-size: 1.5rem; } h4 { margin: 20px 0px; font-size: 1.5rem; }
h5 { margin: 10px 0px; font-size: 1.25rem; } h5 { margin: 10px 0px; font-size: 1.25rem; }
h6 { margin: 10px 0px; font-size: 1.0rem; } h6 { margin: 10px 0px; font-size: 1.0rem; }
pre { pre, .ascii {
line-height: 0.8; line-height: 0.8;
font-size: min(2.2vw, 1.0rem); font-size: min(2.2vw, 1.0rem);
white-space: pre;
} }