Skip to content

Commit

Permalink
MAJOR: css: Add app page css
Browse files Browse the repository at this point in the history
  • Loading branch information
20syldev committed Dec 22, 2024
1 parent 34ae9aa commit 46a4c7e
Showing 1 changed file with 113 additions and 0 deletions.
113 changes: 113 additions & 0 deletions css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}

body {
background: #f5f7fa;
color: #1f2937;
font-family: 'Poppins', sans-serif;
margin: 20px;
transition: all 0.3s;
}

/* Timeline block */
.timeline {
max-width: 900px;
margin: 0 auto;
position: relative;
}
.timeline:before {
content: '';
background: #d9d9d9;
position: absolute;
top: 0;
left: 20px;
width: 4px;
height: 100%;
}
.timeline-item {
position: relative;
display: flex;
align-items: flex-start;
margin-bottom: 20px;
}
.timeline-item:last-child {
margin-bottom: 0;
}
.timeline-item-content {
background: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* Status & Method badges */
.status, .method {
display: inline-block;
color: #fff;
font-size: 12px;
font-weight: 600;
padding: 2.5px 15px;
border-radius: 20px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.status-200 {
background: #27be8a;
}
.status-error {
background: #f77777;
}
.method-get {
background: #517fff;
}
.method-post {
background: #27be8a;
}

/* Request title */
.request {
font-weight: bold;
margin: 10px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* Subtitle informations */
.subtitle {
font-size: 14px;
color: #6b7280;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* Hide scrollbar */
::-webkit-scrollbar {
display: none;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
body {
background: #1f2937;
color: #f5f7fa;
}
.timeline:before {
background: #6b7280;
}
.timeline-item-content {
background: #374151;
}
}

0 comments on commit 46a4c7e

Please sign in to comment.