Skip to content

Commit

Permalink
Responsive UI
Browse files Browse the repository at this point in the history
  • Loading branch information
joswinemmanuel committed Jan 13, 2025
1 parent b1238ba commit d0ada2a
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 12 deletions.
84 changes: 73 additions & 11 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ body {
margin: 0px;
display: flex;
justify-content: center;
flex-wrap: wrap;
background: #ffffff;
color: #ffffff;
font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
Expand Down Expand Up @@ -196,7 +197,7 @@ h2 {
}
table {
width: 100%;
min-width: 495px;
min-width: 200px;
margin-bottom: 2.4rem;
background-color: #20262e15;
color: #fff;
Expand Down Expand Up @@ -253,28 +254,89 @@ table td:before {
}


@media (min-width: 600px) {
table td:before {
display: none;
table td:before {
display: none;
}
table th,
table td {
display: table-cell;
}
table th,
table td,
table td:first-child,
table td:last-child {
padding: 1.5rem 2rem;
}

@media screen and (max-width:500px) {
.container {
padding: 0 10px;
}

body label {
width: 150px;
}

h1 {
font-size: 2rem;
margin-bottom: 1.5rem;
}

.table-1 {
padding-top: 5px;
overflow-x: auto;
}

table {
min-width: 100%;
font-size: 14px;
}

table th,
table td {
display: table-cell;
padding: 1rem 1rem;
}
table th,
table td,
table td:first-child,
table td:last-child {
padding: 1.5rem 2rem;

.th-name {
padding-left: 15px;
}

.copy-cell {
gap: 10px;
}

.repo-name {
font-size: 14px;
word-break: break-word;
}

.copy-button {
padding: 2px;
max-width: 30px;
}

.copy-button svg {
width: 10px;
height: 10px;
}

.stars-count {
white-space: nowrap;
}

body div {
padding: 2rem;
padding-top: 10px;
}

}

/*
Error Page Style From: https://codepen.io/akashrajendra/pen/JKKRvQ
*/

#error{
font-family: 'Lato', sans-serif;
font-family: 'Lato', sans-serif;
color: #888;
margin: 0;
display: table;
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GitHub Repos Searcher</title>
<title>GitHub Repo Filter</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="{{ url_for('static', filename='style.css') }}">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
Expand Down

0 comments on commit d0ada2a

Please sign in to comment.