ml2_homework4 / styles.css
squidgy6's picture
Update styles.css
0e1aa4f verified
Raw
History Blame Contribute Delete
5.96 kB
html, body, [data-testid="stAppViewContainer"], [data-testid="stMain"] {
background-color: #f2f2f2 !important;
font-family: Arial, Helvetica, sans-serif !important;
color: #222 !important;
margin: 0 !important;
padding: 0 !important;
}
header[data-testid="stHeader"],
div[data-testid="stToolbar"],
div[data-testid="stDecoration"] {
display: none !important;
}
#MainMenu,
footer {
visibility: hidden !important;
}
section[data-testid="stMain"],
div[data-testid="stMainBlockContainer"],
.block-container {
padding-top: 0 !important;
padding-right: 0 !important;
padding-bottom: 0 !important;
padding-left: 0 !important;
margin-top: 0 !important;
max-width: 100% !important;
}
* {
color: inherit;
box-sizing: border-box;
}
label, p, div, span, h1, h2, h3, h4, h5, h6 {
color: #222 !important;
}
.topbar {
background: #b31b1b;
color: #fff !important;
height: 68px;
width: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 0 28px;
margin: 0 !important;
}
.topbar-left {
display: flex;
align-items: center;
gap: 16px;
}
.logo-img {
height: 34px;
width: auto;
display: block;
object-fit: contain;
}
.custom-title {
color: #fff !important;
font-size: 20px;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
}
.main-wrap {
max-width: 1120px;
margin: 64px auto 0 auto;
padding: 0 24px 56px 24px;
}
.center-text {
text-align: center;
}
.section-title {
color: #222 !important;
font-size: 32px;
font-weight: 700;
text-align: center;
margin: 0 0 22px 0;
}
.info-text {
color: #333 !important;
font-size: 15px;
line-height: 1.6;
text-align: center;
margin: 0 0 34px 0;
}
div[data-testid="stTextInput"],
div[data-testid="stTextArea"] {
margin-bottom: 18px !important;
}
div[data-testid="stTextInput"] label,
div[data-testid="stTextArea"] label {
color: #222 !important;
font-size: 15px !important;
font-weight: 400 !important;
margin-bottom: 8px !important;
}
div[data-testid="stTextInput"] input {
background-color: #fff !important;
color: #222 !important;
border: 1px solid #c9c9c9 !important;
border-radius: 0 !important;
box-shadow: none !important;
min-height: 44px !important;
padding: 10px 14px !important;
font-size: 16px !important;
}
div[data-testid="stTextInput"] input::placeholder {
color: #777 !important;
}
div[data-testid="stTextInput"] input:focus {
border: 1px solid #999 !important;
box-shadow: none !important;
outline: none !important;
}
div[data-testid="stTextArea"] textarea {
background-color: #fff !important;
color: #222 !important;
border: 1px solid #c9c9c9 !important;
border-radius: 0 !important;
box-shadow: none !important;
padding: 12px 14px !important;
font-size: 16px !important;
line-height: 1.5 !important;
}
div[data-testid="stTextArea"] textarea::placeholder {
color: #777 !important;
}
div[data-testid="stTextArea"] textarea:focus {
border: 1px solid #999 !important;
box-shadow: none !important;
outline: none !important;
}
div[data-baseweb="input"],
div[data-baseweb="textarea"] {
background-color: #fff !important;
border: none !important;
}
div.stButton {
display: block !important;
margin-top: 18px !important;
}
div.stButton > button {
background-color: #b31b1b !important;
color: #fff !important;
border: 1px solid #8d1414 !important;
border-radius: 0 !important;
padding: 14px 34px !important;
font-size: 17px !important;
font-weight: 700 !important;
line-height: 1.2 !important;
box-shadow: none !important;
outline: none !important;
min-height: auto !important;
}
div.stButton > button:hover {
background-color: #981717 !important;
color: #fff !important;
border: 1px solid #7d1111 !important;
box-shadow: none !important;
}
div.stButton > button:focus,
div.stButton > button:active {
background-color: #981717 !important;
color: #fff !important;
border: 1px solid #7d1111 !important;
box-shadow: none !important;
outline: none !important;
}
div.stButton > button p,
div.stButton > button span {
color: #fff !important;
background: transparent !important;
border: none !important;
margin: 0 !important;
padding: 0 !important;
-webkit-text-fill-color: #fff !important;
}
.result-box {
background: #fff !important;
border: 1px solid #d7d7d7 !important;
padding: 18px !important;
margin-top: 30px !important;
}
.result-title {
text-align: center !important;
font-size: 20px !important;
font-weight: 700 !important;
color: #b31b1b !important;
margin-top: 20px !important;
margin-bottom: 20px !important;
}
div[data-testid="stAlert"] {
background-color: #fff !important;
color: #222 !important;
border-radius: 0 !important;
}
.category-line {
text-align: center !important;
font-size: 21px !important;
line-height: 1.9 !important;
margin-bottom: 4px !important;
}
.category-code {
color: #222 !important;
font-weight: 700 !important;
}
.category-desc {
color: #b31b1b !important;
font-weight: 600 !important;
}
@media (max-width: 768px) {
.topbar {
height: auto;
min-height: 68px;
padding: 10px 16px;
}
.topbar-left {
gap: 12px;
flex-wrap: wrap;
}
.logo-img {
height: 28px;
}
.custom-title {
font-size: 17px;
white-space: normal;
}
.main-wrap {
max-width: 100%;
margin-top: 28px;
padding: 0 14px 40px 14px;
}
.section-title {
font-size: 26px;
}
div.stButton > button {
width: auto !important;
padding: 12px 26px !important;
font-size: 16px !important;
}
}