Email signature

by Alon Rotem

HTML

<!-- from https://uiverse.io/JkHuger/warm-panther-53 -->
<input id="mode_toggle" class="l" type="checkbox" />

<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<div class="title">
  Full signature (Table)
</div>
<div class="signature" style="font-family: arial; font-size: 12px; background-color: #212121; color: white; padding: 20px 10px; margin-top: 20px;">
	<div>
    <!-- ------ Full signature (TABLE) COPY FRON HERE ------ -->
    <div class="alon-custom-signature">
		<div style="font-weight: 700;">Alon Rotem</div>
		<div style="margin-top: 10px;">
			<a href="tel:+359884013532" style="color: #5F9EA0; text-decoration: none;">
			<table><tr>
				<td style="vertical-align:middle;  padding-right: 2px"><img src="https://lh3.googleusercontent.com/d/1_BoJToVz4kNqVJ3naiNJ6hbXOb5wpzpA" /></td>
				<td style="font-size: 12px; vertical-align:middle;  padding-right: 2px">+359 88 401 3532</td>
			</tr></table>
			</a>
		</div>
		
		<div style="margin-top: 0px;">
			<a href="http://wa.me/359884013532" style="color: #5F9EA0; text-decoration: none;">
			<table><tr>
				<td style="vertical-align:middle;  padding-right: 2px"><img src="https://lh3.googleusercontent.com/d/1c9HEOGguHa0x-MlVrchcTKlEMfz_A2Sg"/></td>
				<td style="font-size: 12px; vertical-align:middle;  padding-right: 2px">WhatsApp</td>
			</tr></table>
			</a>
		</div>
		
		<div style="margin-top: 0px;">
			<a href="https://alonintheworld.com" style="color: #5F9EA0; text-decoration: none;">
			<table><tr>
				<td style="vertical-align:middle;  padding-right: 2px"><img src="https://lh3.googleusercontent.com/d/1Ijp5JQT1W3BfciOJYItYAOD8Sds22gvZ"/></td>
				<td style="font-size: 12px; vertical-align:middle;  padding-right: 2px">AlonInTheWorld.com</td>
			</tr></table>
			</a>
		</div>
		
		<div style="margin-top: 0px;">
			<table><tr>
				<td style="font-size: 12px; vertical-align:middle;  padding-right: 2px">Socialize &#9956;</td>
				
				<td style="vertical-align:middle; ...

CSS

.title {
  font-family: arial;
  margin: 30px 0px 0px 0px; 
  background-color: yellow; 
  padding: 15px 5px; 
  font-weight: 700;
}
/* From Uiverse.io by JkHuger */ 
.l {
  display: block;
  margin-bottom: 1.5em;
  font-size: 1em;
  cursor: pointer;
}

.l {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 0.75em;
  box-shadow: 0.125em 0.125em 0 0.125em rgba(0, 0, 0, 0.3) inset;
  color: #fdea7b;
  display: inline-flex;
  align-items: center;
  margin: auto;
  padding: 0.15em;
  width: 3em;
  height: 1.5em;
  transition:
    background-color 0.1s 0.3s ease-out,
    box-shadow 0.1s 0.3s ease-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.l:before,
.l:after {
  content: "";
  display: block;
}

.l:before {
  background-color: #d7d7d7;
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  transition:
    background-color 0.1s 0.3s ease-out,
    transform 0.3s ease-out;
  z-index: 1;
}

.l:after {
  background:
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.15) 0) 0 50% / 50% 100%,
    repeating-linear-gradient(90deg, #bbb 0, #bbb, #bbb 20%, #999 20%, #999 40%)
      0 50% / 50% 100%,
    radial-gradient(circle at 50% 50%, #888 25%, transparent 26%);
  background-repeat: no-repeat;
  border: 0.25em solid transparent;
  border-left: 0.4em solid #d8d8d8;
  border-right: 0 solid transparent;
  transition:
    border-left-color 0.1s 0.3s ease-out,
    transform 0.3s ease-out;
  transform: translateX(-22.5%);
  transform-origin: 25% 50%;
  width: 1.2em;
  height: 1em;
  box-sizing: border-box;
}
/* Checked */
.l:checked {
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0.125em 0.125em 0 0.125em rgba(0, 0, 0, 0.1) inset;
}

.l:checked:before {
  background-color: currentColor;
  transform: translateX(125%);
}

.l:checked:after {
  border-left-color: currentColor;
  transform: translateX(-2.5%) rotateY(180deg);
}
/* Other States...

JavaScript

var toggle = document.getElementById("mode_toggle");
var signatures = document.getElementsByClassName("signature");

toggle.addEventListener('change', function() {
  seeMode();
});

var seeMode = function(){
  for(var i=0; i < signatures.length; i++)
  {
    let signature=signatures[i];
    if (toggle.checked) {    
      signature.style.backgroundColor = "white";
      signature.style.color = "black";
    } else {
      signature.style.backgroundColor = "#212121";
      signature.style.color = "white";
    }
  }
}

seeMode();