keycloak-theme/common/resources/css/index.css

311 lines
7.4 KiB
CSS

* {
box-sizing: border-box; }
html {
--accent: #ed1c24;
--foreground: #000;
--foreground-light: rgba(0, 0, 0, 0.7);
--background: #fff;
--background-alt-1: #f5f5f5;
--background-alt-2: #eeeeee;
font-family: 'Open Sans', Arial, sans-serif;
font-weight: 800;
background: var(--background);
color: var(--foreground);
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
width: 100vw;
height: 100vh;
margin: 0;
font-size: 20px; }
*:focus-visible {
outline: 0.2rem solid var(--accent); }
.ps-container {
display: flex;
flex-direction: column; }
.ps-container > * {
margin: 0;
margin-bottom: 1rem; }
.ps-link {
cursor: pointer;
color: var(--accent);
border-bottom: 1px solid white;
transition: border-bottom 0.1s ease;
text-decoration: none; }
.ps-link:hover {
border-bottom: 4px solid var(--accent); }
.ps-card {
background-color: var(--background);
display: flex;
flex-direction: column;
border: 1rem solid var(--foreground); }
.ps-card--header {
padding: 2rem; }
.ps-card--title {
margin: 0;
padding: 0; }
.ps-card--body {
padding: 0rem 2rem; }
.ps-button {
padding: 0.5rem 1rem;
font-size: 1rem;
line-height: 1.2rem;
border: 2px solid var(--foreground);
border-radius: 1.5rem;
background-color: var(--background-alt-2);
cursor: pointer; }
.ps-button:hover, .ps-button:focus {
border-color: var(--accent); }
.ps-input {
padding: 0.5rem 1rem;
border: 2px solid var(--foreground-light); }
.ps-input:hover, .ps-input:focus {
border-color: var(--accent); }
.ps-form-group {
display: flex;
flex-direction: column; }
.ps-main {
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: space-between;
height: 100vh;
width: 100vw;
margin: 0;
padding-top: 10vw;
padding-bottom: 2vw;
overflow: auto;
position: relative; }
.ps-main--background {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100vw;
overflow: hidden; }
.ps-main--page {
z-index: 1; }
.ps-main_full {
padding: 0; }
.ps-header {
border-bottom: 0.5rem solid var(--foreground);
background-color: var(--background);
display: flex;
padding: 0;
margin: 0; }
.ps-header--title {
font-size: 1.5rem;
margin: 0; }
.ps-header--nav {
margin-left: auto;
display: flex; }
.ps-header--nav-list {
display: flex;
justify-content: flex-end;
align-items: center;
list-style: none;
margin: 0;
padding: 0; }
.ps-header--nav-item {
margin: 0;
margin-right: 1rem; }
.ps-header--nav-item-action {
color: var(--foreground);
text-decoration: none; }
.ps-header--nav-item-action:hover {
color: var(--accent); }
.ps-page {
display: flex;
width: 100vw;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: 0; }
@media screen and (min-width: 1200px) {
.ps-page {
padding: 1vw;
flex-direction: row;
align-items: flex-start; } }
.ps-page_home {
flex-direction: row;
flex-wrap: wrap; }
.ps-page--header {
width: 100%;
top: 0;
left: 0;
right: 0;
height: auto;
position: fixed; }
.ps-page--section {
border: 12px solid black;
margin-top: 2rem;
margin-bottom: 2rem;
max-width: 700px;
flex-basis: 100%;
font-size: 16px;
flex-shrink: 1;
pointer-events: all;
color: var(--foreground);
background: white;
word-break: break-word; }
@media screen and (min-width: 1200px) {
.ps-page--section {
margin: 1vw; } }
.ps-page--section_home {
padding: 5vw; }
.ps-page--section_full {
max-width: unset;
width: calc(100% - 8rem);
margin: 4rem;
min-height: calc(100vh - 8rem); }
.ps-page--section a {
color: var(--accent);
border-bottom: 1px solid white;
transition: border-bottom 0.1s ease;
text-decoration: none; }
.ps-page--section a:hover {
border-bottom: 4px solid var(--accent); }
.ps-page--section img {
width: 230px;
margin-top: 1rem; }
.ps-page--section-link {
position: sticky;
top: 0;
background-color: var(--background);
padding: 1rem;
display: flex;
justify-content: flex-end;
align-items: center;
text-align: right;
padding-left: 132px; }
@media screen and (min-width: 1200px) {
.ps-page--section-link {
display: none;
border-bottom: 0; } }
.ps-page--section-link-icon {
margin-left: 8px; }
.ps-page--section-contents {
margin: 5vw;
margin-bottom: 0;
font-weight: 500;
line-height: 1.4; }
.ps-page--section-contents:last-child {
margin-bottom: 5vw; }
.ps-page--section-contents pre,
.ps-page--section-contents code {
background-color: var(--background-alt);
border-radius: 4px;
padding: 4px; }
.ps-page--section-contents > * {
margin-bottom: 0;
margin-top: 8px; }
.ps-page--section-contents > h1, .ps-page--section-contents h2 {
margin-top: 32px;
line-height: 1.5; }
.ps-section-nav {
display: flex;
justify-content: space-between;
flex-wrap: wrap; }
.ps-section-nav--list {
list-style: none;
display: flex;
position: sticky;
margin: 0 -0.5rem; }
.ps-section-nav--link {
margin: 0.5rem; }
.ps-section-nav--link_active a {
color: var(--foreground); }
.ps-section-nav--link_active a:hover {
border-color: var(--foreground); }
.ps-logo {
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 1;
width: 100px; }
.ps-logo--base {
animation-name: rotate;
animation-duration: 0.3s;
animation-timing-function: linear;
animation-play-state: paused;
animation-iteration-count: infinite; }
.ps-logo--base:hover {
animation-play-state: running; }
.ps-logo:nth-child(2n) .ps-logo--base {
animation-delay: -0.1s; }
.ps-logo:nth-child(3n) .ps-logo--base {
animation-delay: -0.3s; }
.ps-logo:nth-child(5n) .ps-logo--base {
animation-delay: -0.5s; }
.ps-logo:nth-child(7n) .ps-logo--base {
animation-delay: -7s; }
.ps-logo:nth-child(11n) .ps-logo--base {
animation-delay: -0.9s; }
.ps-logo:nth-child(13n) .ps-logo--base {
animation-delay: -1s; }
.ps-logo--base::before {
position: absolute;
display: block;
content: '';
width: 100%;
height: 100%;
border-radius: 50%; }
@keyframes rotate {
0% {
transform: rotate(0deg); }
100% {
transform: rotate(360deg); } }
.ps-background {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
speak: none; }
.ps-background--logo {
width: 100px;
margin: 0.1rem; }
.ps-background--1312 {
transform: rotate(34deg);
transform-origin: center center;
color: #eee;
position: fixed;
z-index: 1;
top: -50vh;
left: -50vw;
font-weight: 900;
font-size: 7rem;
line-height: 6rem;
width: 200vw;
height: 200vh; }
.ps-footer {
display: flex;
margin-top: auto;
z-index: 1; }
.ps-footer--link:hover {
text-shadow: 0.2vw 0px 0px var(--accent); }
@media screen and (min-width: 700px) {
.ps-footer--link {
font-size: 4rem; } }
@media screen and (min-width: 1000px) {
.ps-footer--link {
font-size: 2rem; } }