1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00
blog/content/articles/2012-07-16-using-kbd-for-fun-and-profit/_post-kbd.css
Matthias Kretschmann 05ad0470c2
migrate to biome (#944)
* migrate to biome

* cleanup

* fix

* use tsx

* script tweaks

* fix test runs

* path tweaks
2024-07-27 21:15:05 +01:00

76 lines
2.0 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
article kbd {
font-size: 18px;
color: #444;
font-family: 'Lucida Grande', Lucida, Verdana, sans-serif;
font-weight: normal;
font-style: normal;
text-align: center;
line-height: 1em;
text-shadow: 0 1px 0 #fff;
display: inline;
padding: 0.3em 0.55em;
border-radius: 6px;
background-clip: padding-box;
border: 1px solid #bbb;
background-color: #f7f7f7;
background-image: linear-gradient(
to bottom,
rgb(0 0 0 / 10%),
rgb(0 0 0 / 0%)
);
background-repeat: repeat-x;
box-shadow: 0 2px 0 #bbb, 0 3px 1px #999, 0 3px 0 #bbb, inset 0 1px 1px #fff,
inset 0 -1px 3px #ccc;
}
article kbd.dark {
color: #eee;
text-shadow: 0 -1px 0 #000;
border-color: #000;
background-color: #4d4c4c;
background-image: linear-gradient(
rgb(0 0 0 / 50%),
rgb(0 0 0 / 0%) 80%,
rgb(0 0 0 / 0%)
);
background-repeat: no-repeat;
box-shadow: 0 2px 0 #000, 0 3px 1px #999, inset 0 1px 1px #aaa, inset 0 -1px
3px #272727;
}
article kbd.ios {
font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
color: #000;
border-color: rgb(0 0 0 / 60%);
border-top-color: rgb(0 0 0 / 40%);
background-color: #b7b7bc;
background-image: linear-gradient(to bottom, #efeff0, #b7b7bc);
background-repeat: repeat-x;
box-shadow: 0 1px 2px rgb(0 0 0 / 60%), 0 2px 3px rgb(0 0 0 / 10%), inset 0
1px 0 #fff;
}
article kbd.android {
font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #fff;
text-shadow: none;
padding: 0.3em;
border: 1px solid rgb(0 0 0 / 5%);
border-radius: 3px;
background-clip: padding-box;
background-color: #5e5e5e;
box-shadow: 0 2px 2px rgb(0 0 0 / 30%), 0 1px 0 #444, inset 0 1px 0 #868686;
}
article kbd.android.dark {
background: #222;
box-shadow: 0 2px 2px rgb(0 0 0 / 70%), 0 1px 0 #444, inset 0 1px 0 #505050;
}
article kbd.android.color {
background: #083c5b;
box-shadow: 0 2px 2px rgb(0 0 0 / 70%), 0 1px 0 #444, inset 0 1px 0 #36647b;
}