refactor css

This commit is contained in:
Late Night Defender 2024-06-24 15:36:04 +07:00
parent fe6fc38026
commit c23e7a6ce0

253
style.css
View file

@ -23,7 +23,6 @@ html *
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-top: 2cm; margin-top: 2cm;
} }
.middle { .middle {
@ -46,6 +45,104 @@ html *
opacity: 0.5; opacity: 0.5;
} }
.logo {
text-align: center;
}
.grid-container {
display: grid;
justify-content: center;
grid-template-areas:
'left middle right'
}
.headerbutton {
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 14px;
font-weight: bold;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
min-height: 35px;
transition-duration: 0.2s;
}
.list {
border-radius: 12px 12px 12px 12px;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
margin-bottom: 50px;
}
.listaction {
display: grid;
grid-template-columns: 1fr 1cm;
text-decoration: none;
align-items: center;
min-height: 1.5cm;
}
.listinfo {
display: grid;
grid-template-columns: 1fr 1fr;
text-decoration: none;
align-items: center;
min-height: 1.5cm;
}
.separator {
max-width: 15cm;
height: 1px;
}
.topbar {
position: fixed;
width: 100%;
height: 1.2cm;
top: 0px;
left: 0px;
z-index: 10;
}
.backbutton {
position: absolute;
border-radius:10px;
justify-content: center;
align-items: center;
text-decoration: none;
display: grid;
font-size: 14px;
cursor: pointer;
margin: 0.1cm;
transition-duration: 0.2s;
width: 1cm;
height: 1cm;
}
.gtk-button-pill {
position: relative;
width: auto;
height: 44px;
border-radius: 22px;
background-color: rgba(53, 132, 228, 1);
color: white;
text-decoration: none;
font-weight: bold;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0px;
padding: 0px 32px;
margin-bottom: 1cm;
flex-wrap: nowrap;
}
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
body { body {
@ -54,34 +151,15 @@ html *
.logo { .logo {
color: #000; color: #000;
text-align: center;
} }
.grid-container { .grid-container {
display: grid;
justify-content: center;
color: #000000; color: #000000;
grid-template-areas:
'left middle right'
} }
.headerbutton { .headerbutton {
background-color: #EBEBEB; background-color: #EBEBEB;
color: black; color: #000;
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 14px;
font-weight: bold;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
min-height: 35px;
transition-duration: 0.2s;
} }
.headerbutton:hover { .headerbutton:hover {
@ -89,124 +167,53 @@ html *
} }
.list { .list {
border-radius: 12px 12px 12px 12px;
background-color: #ffffff; background-color: #ffffff;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
margin-bottom: 50px;
} }
.separator { .separator {
max-width: 15cm;
height: 1px;
background-color: rgba(237, 237, 237, 1); background-color: rgba(237, 237, 237, 1);
} }
.listaction { .listaction {
display: grid;
grid-template-columns: 1fr 1cm;
text-decoration: none;
color: black; color: black;
align-items: center;
min-height: 1.5cm;
} }
.listinfo { .listinfo {
display: grid;
grid-template-columns: 1fr 1fr;
text-decoration: none;
color: black; color: black;
align-items: center;
min-height: 1.5cm;
} }
.topbar { .topbar {
position: fixed;
width: 100%;
height: 1.2cm;
top: 0px;
left: 0px;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(224, 224, 224, 1); border: 1px solid rgba(224, 224, 224, 1);
color: #000000; color: #000000;
z-index: 10;
} }
.backbutton { .backbutton {
position: absolute;
color: black; color: black;
border-radius:10px;
justify-content: center;
align-items: center;
text-decoration: none;
display: grid;
font-size: 14px;
cursor: pointer;
margin: 0.1cm;
transition-duration: 0.2s;
width: 1cm;
height: 1cm;
} }
.backbutton:hover { .backbutton:hover {
background-color: #DEDEDE; background-color: #DEDEDE;
} }
.gtk-button-pill {
position: relative;
width: auto;
height: 44px;
border-radius: 22px;
background-color: rgba(53, 132, 228, 1);
color: white;
text-decoration: none;
font-weight: bold;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0px;
padding: 0px 32px;
margin-bottom: 1cm;
flex-wrap: nowrap;
}
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
.logo {
color: #fff;
text-align: center;
}
body { body {
background-color: #222222; background-color: #222222;
} }
.logo {
color: #fff;
}
.grid-container { .grid-container {
display: grid;
justify-content: center;
color: #ffffff; color: #ffffff;
grid-template-areas:
'left middle right'
} }
.headerbutton { .headerbutton {
background-color: #4a4a4a; background-color: #4a4a4a;
color: #ffffff; color: #fff;
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 14px;
font-weight: bold;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
min-height: 35px;
transition-duration: 0.2s;
} }
.headerbutton:hover { .headerbutton:hover {
@ -214,84 +221,32 @@ html *
} }
.list { .list {
border-radius: 12px 12px 12px 12px;
background-color: #363636; background-color: #363636;
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.13);
margin-bottom: 50px;
} }
.separator { .separator {
max-width: 15cm;
height: 1px;
background-color: #232323; background-color: #232323;
} }
.listaction { .listaction {
display: grid;
grid-template-columns: 1fr 1cm;
text-decoration: none;
color: #ffffff; color: #ffffff;
align-items: center;
min-height: 1.5cm;
} }
.listinfo { .listinfo {
display: grid;
grid-template-columns: 1fr 1fr;
text-decoration: none;
color: #ffffff; color: #ffffff;
align-items: center;
min-height: 1.5cm;
} }
.topbar { .topbar {
position: fixed;
width: 100%;
height: 1.2cm;
top: 0px;
left: 0px;
background-color: #303030; background-color: #303030;
border: 1px solid #1f1f1f; border: 1px solid #1f1f1f;
color: #ffffff; color: #ffffff;
z-index: 10;
} }
.backbutton { .backbutton {
position: absolute;
color: #ffffff; color: #ffffff;
border-radius:10px;
justify-content: center;
align-items: center;
text-decoration: none;
display: grid;
font-size: 14px;
cursor: pointer;
margin: 0.1cm;
transition-duration: 0.2s;
width: 1cm;
height: 1cm;
} }
.backbutton:hover { .backbutton:hover {
background-color: #3e3e3e; background-color: #3e3e3e;
} }
.gtk-button-pill {
position: relative;
width: auto;
height: 44px;
border-radius: 22px;
background-color: rgba(53, 132, 228, 1);
color: white;
text-decoration: none;
font-weight: bold;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0px;
padding: 0px 32px;
margin-bottom: 1cm;
flex-wrap: nowrap;
}
} }