styleContent property
Implementation
static final String styleContent = """
* {
margin: 0;
}
body {
background-color: #eee;
}
ul {
list-style: none;
display: flex;
}
a {
text-decoration: none;
color: white;
}
ul li {
margin-left: 16px;
}
header {
background: linear-gradient(45deg, #010758, #490d61);
position: fixed;
width: 100%;
z-index: 999;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 70px;
}
.container {
/* padding: 12px 70px; */
padding: 10% 70px;
}
.logo {
display: flex;
flex-direction: row;
align-items: center;
color: white;
font-size: 24px;
}
.logo-image {
width: 48px;
}
.section {
padding: 24px;
background-color: rgb(223 221 221);
margin-top: 48px;
margin-bottom: 16px;
font-size: 24px;
font-weight: 600;
border-radius: 12px;
display: flex;
align-items: center;
position: relative;
justify-content: space-between;
}
.section img {
width: 22px;
transition: 0.3s;
}
.detail-section {
background-color: rgb(223 221 221 / 50%);
padding: 24px;
letter-spacing: 1.5px;
border-radius: 12px;
margin-left: 36px;
display: none;
}
.sub-section {
background: #d5d5d5;
margin-top: 4px;
padding: 12px;
border-radius: 8px;
}
.request {
background: linear-gradient(45deg, #010758, #490d61);
color: white;
padding: 12px;
margin: 8px;
margin-bottom: 24px;
border-radius: 12px;
}
.request-method-and-route {
display: block;
background-color: #5e35b1a3;
padding: 14px;
border-radius: 8px;
margin-bottom: 12px;
color: white;
line-height: 1.4;
}
.request-body {
color: white;
background-color: #490d61;
padding: 12px;
border-radius: 8px;
margin-bottom: 12px;
}
.request-header {
color: white;
background-color: #5e35b1a3;
padding: 12px;
margin-bottom: 12px;
border-radius: 8px;
line-height: 1.4;
}
.request-auth {
background-color: #490d61;
color: white;
padding: 12px;
border-radius: 8px;
margin-bottom: 12px;
}
""";