Skip to content

Commit

Permalink
[#171,#241][Site/CSS] Crum and Home Share a CSS File.
Browse files Browse the repository at this point in the history
This keeps things simple and localized, and will make it possible to
reuse the styling for other subpages as well.
  • Loading branch information
pishoyg committed Sep 15, 2024
1 parent 25a7675 commit f7d9d32
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 51 deletions.
49 changes: 0 additions & 49 deletions site/crum.css

This file was deleted.

1 change: 0 additions & 1 deletion site/crum.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<!-- Viewport for mobile scaling -->

<title>A Coptic Dictionary, Walter E. Crum</title>
<link href="index.css" rel="stylesheet" type="text/css">
</head>
<body>
<a href="http://remnqymi.com/">home</a>
Expand Down
1 change: 0 additions & 1 deletion site/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ build() {
flashcards/data/output/web/a_coptic_dictionary__all_dialects/* \
"${CRUM_DIR}"
cp "site/crum.html" "${CRUM_DIR}/index.html"
cp "site/crum.css" "${CRUM_DIR}/index.css"
cp "site/data/xooxle/crum.json" "${CRUM_DIR}/xooxle.json"
cp "site/data/build/xooxle.js" "${CRUM_DIR}/"

Expand Down
49 changes: 49 additions & 0 deletions site/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,52 @@ ol li a:hover {
width: 100%;
}
}
table {
border-collapse: collapse;
width: 100%;
}

tbody tr:not(:last-child) {
border-bottom: 1px solid black;
}

thead tr {
border-bottom: 1px solid black;
}

td:not(:first-child) {
border-left: 1px solid black;
padding-left: 5px;
}

/* Responsive table layout for mobile */
@media (max-width: 500px) {
table, thead, tbody, th, td, tr {
display: block;
}

td {
border: none;
padding-bottom: 10px;
padding-left: 0;
}

td:before {
content: attr(data-label);
display: block;
font-weight: bold;
margin-bottom: 5px;
}

/* Center and space checkboxes for small screens */
.checkboxes {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.checkboxes label {
margin-bottom: 5px;
margin-right: 10px;
}
}

0 comments on commit f7d9d32

Please sign in to comment.