Skip to content

Commit 006359a

Browse files
authored
Merge pull request #12 from Dev2Forge/develop
Fix responsive layout
2 parents 4ba3282 + 1ffa7ca commit 006359a

2 files changed

Lines changed: 52 additions & 39 deletions

File tree

docs/assets/css/index.css

Lines changed: 50 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,84 @@
11
hr {
2-
margin: 20px 0 !important;
2+
margin: 20px 0 !important;
33
}
44

55
h1 {
6-
text-align: center;
7-
font-size: xx-large;
6+
text-align: center;
7+
font-size: xx-large;
88
}
99

1010
code {
11-
background-color: #2c2c2c;
12-
padding: 2px 4px;
13-
border-radius: 4px;
14-
font-family: 'Courier New', Courier, monospace;
15-
user-select: all;
11+
background-color: #2c2c2c;
12+
color: rgb(166, 255, 0);
13+
padding: 2px 4px;
14+
border-radius: 4px;
15+
font-family: 'Courier New', Courier, monospace;
16+
user-select: all;
17+
overflow-x: scroll;
18+
}
19+
20+
pre,
21+
code {
22+
overflow: scroll;
23+
scrollbar-width: none;
24+
-ms-overflow-style: none;
25+
}
26+
27+
pre::-webkit-scrollbar {
28+
display: none;
1629
}
1730

1831
#description h2 {
19-
text-align: center;
20-
font-size: x-large;
21-
margin-bottom: 15px;
32+
text-align: center;
33+
font-size: x-large;
34+
margin-bottom: 15px;
2235
}
2336

2437
#title-page::after {
25-
content: 'org';
26-
font-size: small;
38+
content: 'org';
39+
font-size: small;
2740
}
2841

2942
.thumbnail-dev2forge {
30-
width: 80vh;
43+
width: 80vh;
3144
}
3245

3346
#carrusel-repos::-webkit-scrollbar {
34-
display: none;
47+
display: none;
3548
}
3649
#carrusel-repos {
37-
scrollbar-width: none;
38-
-ms-overflow-style: none;
50+
scrollbar-width: none;
51+
-ms-overflow-style: none;
3952
}
4053
.no-scrollbar::-webkit-scrollbar {
41-
display: none;
54+
display: none;
4255
}
4356
.no-scrollbar {
44-
scrollbar-width: none;
45-
-ms-overflow-style: none;
57+
scrollbar-width: none;
58+
-ms-overflow-style: none;
4659
}
4760
.btn-repo-link {
48-
border-radius: 200px;
49-
padding: 5px 10px;
50-
color: #2563eb;
51-
text-decoration: none;
52-
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
53-
border: 1.5px solid #93c5fd;
54-
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
55-
display: flex;
56-
align-items: center;
57-
justify-content: center;
61+
border-radius: 200px;
62+
padding: 5px 10px;
63+
color: #2563eb;
64+
text-decoration: none;
65+
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
66+
border: 1.5px solid #93c5fd;
67+
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
68+
display: flex;
69+
align-items: center;
70+
justify-content: center;
5871
}
5972
.btn-repo-link:hover {
60-
background-color: #2563eb;
61-
color: #fff;
62-
box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
63-
transform: scale(1.12);
73+
background-color: #2563eb;
74+
color: #fff;
75+
box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
76+
transform: scale(1.12);
6477
}
6578
.btn-repo-link img {
66-
filter: none;
67-
transition: filter 0.2s;
79+
filter: none;
80+
transition: filter 0.2s;
6881
}
6982
.btn-repo-link:hover img {
70-
filter: brightness(0) invert(1);
83+
filter: brightness(0) invert(1);
7184
}

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767
</script>
6868
</head>
69-
<body class="bg-white dark:bg-gray-900 dark:text-gray-100 text-gray-800 transition-colors duration-300 min-h-screen flex flex-col dark">
69+
<body class="w-[98vw] p-0 overflow-x-hidden bg-white dark:bg-gray-900 dark:text-gray-100 text-gray-800 transition-colors duration-300 dark">
7070
<!-- Header -->
7171
<header class="w-full flex justify-between items-center p-6 flex-shrink-0">
7272
<div class="w-full text-center">
@@ -75,7 +75,7 @@ <h1 class="text-3xl font-bold inline" id="title-head"></h1>
7575
</header>
7676

7777
<!-- Main Content -->
78-
<main class="flex-1 flex flex-col items-center w-full px-6 pb-12">
78+
<main class="px-6 pb-12 word-wrap no-scrollbar">
7979
<!-- Repos -->
8080
<section id="carrusel-repos" class="h-100 grid grid-rows-1 grid-flow-col gap-4 overflow-x-auto snap-x snap-mandatory w-full py-4">
8181
<!-- Repos will be injected here -->

0 commit comments

Comments
 (0)