All checks were successful
continuous-integration/drone/push Build is passing
...in the remaining files
83 lines
3.2 KiB
HTML
83 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
|
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>background gradient - tew-0x00</title>
|
|
<meta name="description" content="background gradient - tew-0x00">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script defer src="/scripts/prism.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
|
<link rel="stylesheet" type="text/css" href="/css/prism.css" data-noprefix/>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div id="divlogoimg">
|
|
<img class="logoimg" src="/media/logo.png">
|
|
</div>
|
|
</header>
|
|
<h3 class="title">background gradient</h3>
|
|
<div id="divsection">
|
|
<div id="radialgradient">
|
|
<p>radial gradient</p>
|
|
</div>
|
|
<div class="divp">
|
|
<p>Background gradient can be used to display a nice smooth transition between at least two colors.<br>The one above is the example of <code class="language-highlight">radial gradient</code> - defined by its center and three colours.</p>
|
|
</div>
|
|
<div class="divcodeblock">
|
|
<pre class="language-css" data-lang="css"><code class="language-css">#radialgradient {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 7px;
|
|
margin: 0 0em;
|
|
min-height: 13em;
|
|
align-items: center;
|
|
align-content: center;
|
|
text-align: center;
|
|
background: rgb(2,0,36);
|
|
background: radial-gradient(
|
|
circle,
|
|
rgba(2,0,36,1) 0%,
|
|
rgba(9,9,121,1) 52%,
|
|
rgba(0,212,255,1) 100%
|
|
);
|
|
}</code></pre>
|
|
</div>
|
|
<div id="lineargradient">
|
|
<p>linear gradient</p>
|
|
</div>
|
|
<div class="divp">
|
|
<p>This is <code class="language-highlight">linear gradient</code> - it's got a specific direction.<br>In this case, value <code class="language-higlight">133deg</code> tells us where it's heading, we specified three colours and opacity.</p>
|
|
</div>
|
|
<div class="divcodeblock">
|
|
<pre class="language-css" data-lang="css"><code class="language-css">#lineargradient {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 7px;
|
|
margin: 0 0em;
|
|
min-height: 13em;
|
|
align-items: center;
|
|
align-content: center;
|
|
text-align: center;
|
|
background-image: linear-gradient(
|
|
133deg,
|
|
#deadbeef 0%,
|
|
#3fa8eb 51%,
|
|
#2cb5fd 75%
|
|
);
|
|
opacity: 0.95;
|
|
}</code></pre>
|
|
</div>
|
|
</div>
|
|
<footer class="copyright">
|
|
© 2020 <a href="https://git.dotya.ml/wanderer" target="_blank">wanderer</a>
|
|
· <a href="https://tew0x00.dotya.ml/">tew-0x00</a>
|
|
· WTFPL<br>
|
|
<a href="https://git.dotya.ml/wanderer/TEW-0x00" target="_blank" title="page source">source</a>
|
|
</footer>
|
|
</body>
|
|
</html>
|