Template:Kbd/styles.css: Difference between revisions

From Foundry Wiki
No edit summary
No edit summary
Line 13: Line 13:
* Used by [[Template:Key]] *
* Used by [[Template:Key]] *
****************************/
****************************/
.key {
 
  display:inline-block;
/* Base style, essential for every key. */
  white-space:nowrap;
kbd, .key {
display: inline;
display: inline-block;
min-width: 1em;
padding: .2em .3em;
font: normal .85em/1 "Lucida Grande", Lucida, Arial, sans-serif;
text-align: center;
text-decoration: none;
border-radius: .3em;
border: none;
cursor: default;
user-select: none;
}
}
 
kbd[title], .key[title] {
.key kbd {
cursor: help;
  padding: 0.1em 0.6em 0.1em 0.6em;
  margin-right:2px;
  font-size:85%;
  font-family:inherit;
  font-style:normal;
  border-radius: .2em;  
}
}


/* Dark Variation */
/* Dark style for display on light background. This is the default style. */
.keysDark {
kbd, kbd.dark, .dark-keys kbd, .key, .key.dark, .dark-keys .key {
  color:black;  
background: rgb(80, 80, 80);
  border: 1px solid rgb(170, 170, 170);  
color: rgb(250, 250, 250);
  box-shadow: 0.1em 0.2em 0.2em rgb(221, 221, 221);  
text-shadow: -1px -1px 0 rgb(70, 70, 70);
  background-image: linear-gradient(to bottom, rgb(238, 238, 238), rgb(249, 249, 249), rgb(238, 238, 238));
box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3);
  background-color: rgb(249, 249, 249);  
}
}


/* Light Variation */
/* Light style for display on dark background. */
keysLight.kbd {
kbd.light, .light-keys kbd, .key.light, .light-keys .key {
  color:white;  
background: rgb(250, 250, 250);
  border: 1px solid rgb(0, 0, 0);  
color: rgb(50, 50, 50);
  box-shadow: 0.1em 0.2em 0.2em rgb(0, 0, 0);  
text-shadow: 0 0 2px rgb(255, 255, 255);
  background-image: linear-gradient(to bottom, rgb(0, 0, 0), rgb(15, 15, 15), rgb(30, 30, 30));
box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
  background-color: rgb(30, 30, 30);  
}
}
/**************************
/**************************
* End Template:Key styles *
* End Template:Key styles *
***************************/
***************************/

Revision as of 08:11, 29 June 2022

.template-kbd {
	background: #EEEEEE;
	padding-left: 0.4em;
	padding-right: 0.4em;
}

.template-kbd.spacing {
	letter-spacing: 0.1em;
	padding-left: 0.5em;
}

/***************************
* Used by [[Template:Key]] *
****************************/

/* Base style, essential for every key. */
kbd, .key {
	display: inline;
	display: inline-block;
	min-width: 1em;
	padding: .2em .3em;
	font: normal .85em/1 "Lucida Grande", Lucida, Arial, sans-serif;
	text-align: center;
	text-decoration: none;
	border-radius: .3em;
	border: none;
	cursor: default;
	user-select: none;
}
kbd[title], .key[title] {
	cursor: help;
}

/* Dark style for display on light background. This is the default style. */
kbd, kbd.dark, .dark-keys kbd, .key, .key.dark, .dark-keys .key {
	background: rgb(80, 80, 80);
	color: rgb(250, 250, 250);
	text-shadow: -1px -1px 0 rgb(70, 70, 70);
	box-shadow: inset 0 0 1px rgb(150, 150, 150), inset 0 -.05em .4em rgb(80, 80, 80), 0 .1em 0 rgb(30, 30, 30), 0 .1em .1em rgba(0, 0, 0, .3);
}

/* Light style for display on dark background. */
kbd.light, .light-keys kbd, .key.light, .light-keys .key {
	background: rgb(250, 250, 250);
	color:  rgb(50, 50, 50);
	text-shadow: 0 0 2px rgb(255, 255, 255);
	box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
}
/**************************
* End Template:Key styles *
***************************/