lirony's picture
Initial public commit
a6bdbe4
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* {
box-sizing: border-box;
}
html {
--image-fixed-width: 280px;
height: 100%;
}
#root {
height: 100%;
margin: auto;
width: 100%;
}
body {
font-family: "Google Sans Text", sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
margin: 0;
display: flex;
flex-direction: column;
user-select: none;
height: 100%;
}
.page {
display: flex;
flex-direction: column;
width: 100%;
height: fit-content;
}
.headerButtonsContainer {
display: flex;
justify-content: space-between;
width: -webkit-fill-available;
padding: 20px;
}
.info-button, .back-button, .details-button {
font-family: 'Google Sans Text', sans-serif;
font-size: 14px;
font-weight: 500;
padding: 6px 12px;
border-radius: 100px;
cursor: pointer;
text-align: center;
transition: background-color 0.3s ease;
align-self: flex-start;
border-width: 1px;
}
.back-button, .details-button {
padding: 8px 12px;
z-index: 10;
color: black;
background-color: transparent;
display: inline-flex;
align-items: center;
border-radius: 100px;
border: 1px solid rgba(196, 199, 197);
}
.back-button-icon {
margin-right: 4px;
}
.back-button-icon {
font-size: 14px;
}
.code-block-icon {
background-color: rgba(0, 74, 119);
color: rgba(194, 231, 255);
font-size: 14px;
}
.details-button {
background-color: rgba(194, 231, 255);
color: rgba(0, 74, 119);
border: none;
}
.info-button {
background-color: #0B57D0;
color: white;
padding: 12px;
}
.info-button:disabled {
background: #aaa;
cursor: not-allowed;
}
.info-button:hover:not(:disabled) {
background: #005fa3;
}
.frame {
border-radius: 28px;
border: 2px solid #E9E9E9;
background: #FFF;
padding: 20px 50px;
align-items: center;
display: flex;
flex-direction: column;
flex: 1;
justify-content: space-around;
margin: 0 10px;
min-height: 0;
width: fit-content;
}
.popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
backdrop-filter: blur(5px);
}
.popup-content {
background: #ffffff;
padding: 2rem;
border-radius: 12px;
max-width: 800px;
width: 90%;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
border: 1px solid #e0e0e0;
animation: popup-fade-in 0.3s ease-out;
}
@keyframes popup-fade-in {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.popup-content h2 {
font-size: 1.5rem;
font-weight: 600;
color: #333;
margin-top: 0;
margin-bottom: 1rem;
text-align: center;
}
.popup-content p {
font-size: 1rem;
line-height: 1.6;
color: #555;
text-align: left;
margin-bottom: 1.5rem;
}
.popup-button {
display: block;
padding: 12px 20px;
font-size: 1rem;
font-weight: 600;
color: #fff;
background-color: #1a73e8;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.popup-button:hover {
background-color: #185abc;
}
.hf-logo {
vertical-align: middle;
width: 30px;
}