Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
wkrzywiec committed Feb 12, 2025
1 parent 5e2c6b8 commit 40b457c
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
28 changes: 28 additions & 0 deletions services/mankkoo-ui/app/streams/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.tabs {
display: flex;
border-bottom: 2px solid #ccc;
}

.tab {
padding: 10px 20px;
cursor: pointer;
border: none;
background: none;
font-size: 16px;
border-bottom: 3px solid transparent;
transition: 0.3s;
}

.tab.active {
border-bottom: 3px solid #007BFF;
}

.tab-content {
display: none;
padding: 20px;
border: 1px solid #ccc;
}

.tab-content.active {
display: block;
}
53 changes: 53 additions & 0 deletions services/mankkoo-ui/components/elements/TabList.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.tab-nav {
overflow-x: scroll;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}

.tab-list::-webkit-scrollbar {
display: none;
}

.tab-list {
width: fit-content;
min-width: 100%;
display: flex;
gap: .5em;
margin: 0;
padding: 0;
border-bottom: 2px solid var(--font-color);
color: var(--font-color);
}

.tab-list li {
display: block;
margin-bottom: -2px;
}

.tab-btn {
font: inherit;
padding: 0.75em 1em;
background-color: transparent;
border: 2px solid var(--font-color);
border-width: 0 0 2px;
cursor: pointer;
color: inherit;
white-space: nowrap;
}

.tab-btn:not(.tab-btn--active):hover {
color: var(--font-color);
}

.tab-btn--active {
color: var(--basic-1st-color);
border-color: var(--basic-1st-color);
}

.tab-panel {
margin-top: 1em;
padding: 1em;
background-color: var(--tab-panel-bg-color);
border-radius: .5em;
}
2 changes: 1 addition & 1 deletion services/mankkoo-ui/components/elements/TabList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import "./TabList.css"

import { ReactElement, useState } from "react"
import TabContent from "./TabContent";
Expand Down

0 comments on commit 40b457c

Please sign in to comment.