moved styling to css file

This commit is contained in:
array-in-a-matrix 2022-01-15 04:16:14 -05:00
parent 53e0cf2527
commit 13a2bcff62
2 changed files with 36 additions and 14 deletions

View file

@ -10,25 +10,12 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css"
integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
<link rel="icon" type="image/x-icon" href="/res/site/icons/favicon.ico">
<style>
.zoom {
transition: transform .2s;
margin: 0 auto;
}
.zoom img {
width: 100%;
height: auto;
}
.zoom:hover {
transform: scale(1.5);
}
</style>
</head>
<body>
<header class="page-header" role="banner">
<h1 class="project-name">Desktop Rice</h1>
<h2 class="project-tagline"></h2>
<a href="/" class="btn">Home</a>
<a href="../" class="btn">about</a>

View file

@ -684,3 +684,38 @@ body {
.game {
text-align: center;
}
:target {
animation: highlight 1s ease;
transform: translateX(20px);
}
@keyframes highlight {
0% {
border-left-color: yellow;
}
100% {
border-left-color: white;
}
}
section {
border-left: 40px solid white;
padding: 0px;
transition: all 0.5s ease;
padding-right: 50px;
margin-left: -20px;
}
.zoom {
transition: transform .2s;
margin: 0 auto;
}
.zoom img {
width: 100%;
height: auto;
}
.zoom:hover {
transform: scale(1.5);
}