rust-ssg/static/links.css
2023-10-14 14:20:03 -04:00

193 lines
4.2 KiB
CSS

/*
Borrowed and modified from https://github.com/alisa-yar/linktree-template/tree/main
Thanks, Alisa!
MIT License
Copyright (c) 2022 alisayar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');
:root {
--textColor: #FFFFFF;
--font: 'Karla', sans-serif;
}
html {
margin: 0;
height: 100%;
/* migrated to template
background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('garbage.png');
*/
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
display: flex;
flex-direction: column;
align-items: center;
font-family: var(--font);
color: var(--textColor);
text-shadow: 0px 0px 10px black, 0px 0px 5px black, 0px 0px 3px black ;
}
body {
margin: 0;
padding: 0;
height: fit-content;
min-height: 100%;
}
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 140px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 150%;
left: 50%;
margin-left: -75px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
.description {
font-size: 18px;
color: var(--textColor);
text-align: center;
margin: 27px auto;
margin-top: 10px;
width: 90%;
max-width: 500px;
}
.footer {
font-size: 16px;
color: var(--textColor);
font-style: italic;
text-align: center;
margin: 27px auto;
margin-top: 10px;
width: 90%;
max-width: 500px;
padding-bottom: 20px;
padding-top: 50px;
}
.profilePicture img {
position: relative;
display: block;
margin: 35px auto 20px;
border-radius: 50%;
object-fit: cover;
width: 130px;
height: 130px;
}
.userName {
color: var(--textColor);
font-size: 20px;
font-weight: bold;
line-height: 1.25;
display: block;
font-family: var(--font);
width: 100%;
text-align: center;
}
.sectionTitle {
color: var(--textColor);
font-size: 20px;
font-weight: bold;
line-height: 1.25;
display: block;
font-family: var(--font);
width: 100%;
text-align: center;
margin-bottom: -10px;
padding-bottom: 10px;
border-bottom: 1px dashed;
}
.links {
max-width: 675px;
width: auto;
display: block;
margin: 27px auto;
}
.block {
display: block;
}
.link {
position: relative;
background-color: rgba(0, 0, 0, 0.5);
color: var(--textColor);
border: solid var(--textColor) 2px;
border-radius: 10px;
font-size: 18px;
text-align: center;
display: block;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
padding: 10px;
text-decoration: none;
}
.link a {
position: relative;
color: var(--textColor);
font-size: 18px;
text-align: center;
text-decoration: none;
}