fullstack.web/swa/keycodes/style.css

440 lines
7.2 KiB
CSS
Raw Normal View History

2022-12-22 06:57:51 +00:00
/* Themes */
.light-theme {
--background: #f2f4f8;
--primary: #b9e9ff;
--primary-border: #a2e2ff;
--text: #424242;
--love-text: #d12026;
--muted-text: #ccc;
--context-text: #6597b2;
--button: #0091d4;
--card-background: #fff;
--card-hover: rgba(220, 233, 255, 0.48);
--table-separator: #dee2e6;
}
.dark-theme {
--background: #424242;
--primary: #5b60ff;
--primary-border: #4347b6;
--text: #f2f4f8;
--love-text: #00e4c6;
--context-text: #8effb1;
--button: var(--primary);
--card-background: #5f5f5f;
--card-hover: rgba(47, 47, 47, 0.76);
--table-separator: #828282;
}
/* Reset */
* {
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
margin: 0;
font-family: 'Montserrat', 'sans-serif';
color: var(--text);
overflow: hidden;
background: var(--background);
}
.display {
text-align: center;
display: table;
height: 100%;
max-width: 1280px;
width: 100%;
margin: 0 auto;
}
.wrap {
display: table-cell;
vertical-align: middle;
}
p {
font-size: 100px; /* For lamers who don't support viewport sizing */
font-size: 40vmin;
text-align: center;
margin: 0;
}
p.text-display {
display: inline-block;
color: var(--text);
font-size: 20px;
text-decoration: none;
text-align: center;
margin: 20px auto;
padding: 15px 20px;
background: var(--card-background);
border-radius: 5px;
min-width: 24px;
font-size: 26px;
box-shadow: 0 14px 26px rgba(0, 0, 0, 0.04);
}
span.love {
display: block;
position: absolute;
bottom: 10px;
width: 100%;
text-align: center;
}
span.love a {
text-decoration: none;
color: var(--love-text);
}
.twitter-follow-toggle-button {
vertical-align: text-bottom;
}
.twitter-share-toggle-button {
vertical-align: text-bottom;
}
/*
Added New Card layout Css
*/
.cards {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: baseline;
margin-bottom: 20px;
}
.card {
background: var(--card-background);
border-radius: 5px;
overflow: hidden;
margin: 10px;
flex: 1;
max-width: calc(25% - 20px);
box-shadow: 0 14px 26px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease-out;
text-decoration: none;
border: 1px solid rgba(0, 0, 0, 0.11);
}
.item-location .card-main {
padding: 9.5px;
}
.item-location .main-description {
font-size: 23px;
}
.item-location .main-description span {
display: block;
}
.card:hover {
cursor: pointer;
transform: translateY(-5px) scale(1.005) translateZ(0);
box-shadow: 0 24px 36px rgba(0, 0, 0, 0.11),
0 24px 46px var(--card-hover);
}
.card-header {
text-align: center;
font-size: 12px;
font-weight: 600;
border-bottom: 1px solid var(--primary-border);
background-color: var(--primary);
padding: 5px 10px;
position: relative;
}
.more-info {
height: 1.2em;
width: 1.2em;
float: right;
}
.more-info::before {
content: '(?)';
color: var(--context-text);
display: inline-block;
}
.deprecated-link {
position: absolute;
top: 6px;
right: 12px;
color: var(--context-text);
font-size: 10px;
}
.card-main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 15px 0;
}
.main-description {
font-size: 28px;
text-align: center;
min-height: 35px;
}
.text-muted {
font-size: 0.65em;
color: var(--muted-text);
}
.table {
width: 50%;
table-layout: fixed;
margin: auto;
margin-top: 5vh;
box-shadow: 0 14px 26px rgba(0, 0, 0, 0.04);
border-radius: 5px;
border-collapse: collapse;
}
.table-body {
display: block;
width: 100%;
overflow: auto;
height: 77vh;
background: var(--card-background);
}
.table thead tr {
display: block;
border-radius: 5px;
}
.table thead {
font-size: 12px;
font-weight: 600;
border-bottom: 1px solid var(--primary-border);
background-color: var(--primary);
}
.table th,
.table td {
padding: 0.3rem 1rem;
text-align: left;
min-width: 100px;
font-size: 1.2rem;
}
.table th {
padding: 0.5rem 1rem;
}
.table td {
border-bottom: 1px solid var(--table-separator);
}
.table tbody tr:hover {
background-color: rgba(0, 0, 0, 0.075);
}
.fixed-buttons {
position: absolute;
top: 15px;
right: 15px;
}
.fixed-buttons :nth-child(1) {
margin-right: 15px;
}
.toggle-button {
font: bold 16px arial;
color: var(--button);
border: 2px solid var(--button);
background: transparent;
border-radius: 5px;
padding: 5px 10px;
transition: all 0.3s ease-out;
cursor: pointer;
}
.toggle-button:hover {
transform: translateY(-2px) scale(1.005) translateZ(0);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.11),
0 6px 9px var(--card-hover);
}
.toggle-button:active {
transform: translateY(2px) scale(0.995) translateZ(0);
box-shadow: none;
}
.mobile-input input {
width: calc(100% - 20px);
height: 4rem;
margin: 10px;
font-size: 4rem;
border: 1px solid #dadada;
border-radius: 4px;
box-shadow: 0 14px 26px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease-out;
}
.mobile-input input:focus {
outline: none;
transform: translateY(-5px) scale(1.005) translateZ(0);
box-shadow: 0 24px 36px rgba(0, 0, 0, 0.11),
0 24px 46px var(--card-hover);
}
@media (min-width: 601px) and (max-width: 980px) {
body {
overflow-y: auto;
}
.card {
flex: 45%;
max-width: 45%;
}
.display {
width: 80%;
}
.main-description {
min-height: 34px;
}
}
@media (max-width: 600px) {
body {
overflow-y: auto;
}
.card {
flex: 100%;
max-width: 100%;
}
.display {
width: 90%;
}
.table {
width: 100%;
margin-top: 4rem;
}
.table-body {
height: 60vh;
}
}
.hide {
display: none !important;
}
.active {
display: flex;
}
/* Carbon Ads */
#carbonads * {
margin: initial;
padding: initial;
}
#carbonads {
display: flex;
position: fixed;
top: 1rem;
left: 1rem;
font-size: 11px;
overflow: hidden;
max-width: 130px;
border-radius: 4px;
box-shadow: 0 0 1px hsla(0, 0%, 0%, .15);
}
#carbonads a {
text-decoration: none;
color: #111;
}
#carbonads a:hover {
color: #111;
}
#carbonads .carbon-img {
display: block;
line-height: 1;
max-width: 130px;
}
#carbonads .carbon-img img {
display: block;
margin: 0 auto;
width: 130px;
height: 100px;
}
#carbonads .carbon-text {
display: block;
padding: 8px 10px;
line-height: 1.35;
text-align: left;
background-color: hsl(0, 0%, 98%);
}
#carbonads .carbon-poweredby {
display: block;
padding: 10px;
font-size: 8px;
font-weight: 600;
line-height: 0;
letter-spacing: .5px;
text-transform: uppercase;
background: repeating-linear-gradient(-45deg,
transparent,
transparent 5px,
hsla(0, 0%, 0%, .025) 5px,
hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
background-color: hsl(0, 0%, 98%);
}
@media only screen and (min-width: 320px) and (max-width: 759px) {
#carbonads {
float: none;
position: relative;
margin: 4rem auto 0;
max-width: 330px;
}
#carbonads .carbon-wrap {
display: flex;
flex-direction: row;
}
#carbonads .carbon-img {
margin: 0;
}
#carbonads .carbon-text {
padding: 10px 10px 0 10px;
font-size: 12px;
}
#carbonads .carbon-poweredby {
position: absolute;
right: 0;
bottom: 0;
text-align: center;
border-radius: 0;
border-top-left-radius: 3px;
}
}