Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,8 @@ dependencies = [
"Pygments >= 2.12.0",
"xstatic < 2.0.0",
"XStatic-asciinema-player <= 2.6.1.1",
"xstatic-bootbox >= 5.4.0, <= 5.5.1.1",
"xstatic-bootstrap >=4.0.0.0, <= 4.5.3.1",
"xstatic-font-awesome >= 6.0.0, <= 6.2.1.1",
"xstatic-jquery <= 3.5.1.1",
"xstatic-jquery-ui <= 1.13.0.1",
"xstatic-jquery-file-upload <= 10.31.0.1",
"xstatic-pygments <= 2.9.0.1",
"xstatic-pygments <= 2.9.0.1"
]

[project.scripts]
Expand Down
5 changes: 0 additions & 5 deletions src/bepasty/bepasty_xstatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
# The names below must be package names.
mod_names = [
'asciinema_player',
'bootbox',
'bootstrap',
'font_awesome',
'jquery',
'jquery_ui',
'jquery_file_upload',
'pygments',
]

Expand Down
77 changes: 31 additions & 46 deletions src/bepasty/static/app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ body {
margin: 0;
-webkit-font-smoothing: antialiased;
font-size: 100%;
background-color: #fff;
}

#footer {
height: 30px;
position: relative;
}

#formupload {
Expand All @@ -22,30 +16,16 @@ body {
font-family: monospace;
}

#files p {
#files a {
word-break: break-all;
}
#files p .break-word {
word-break: break-word;
font-weight: normal !important;
}

#filelist {
height: auto;
width: 100%;
font-family: monospace;
}

.fileupload-abort {
float: right;
margin-left: 10px;
}

.dropzone {
width: 100%;
padding: 3em;
}

#wrapper {
min-height: 100%;
margin: 0 auto -30px;
Expand All @@ -56,33 +36,11 @@ body {
padding: 0 15px 60px;
}

.jumbotron .fa {
font-size: 80px;
}

.jumbotron {
font-size: 100%;
text-align: center;
}

.alert {
padding: 5px 10px;
}

.alert-processing {
color: #464646;
background-color: #f0f0f0;
border-color: #eeeeee;
}

.alert-processing hr {
border-top-color: #e6e6e6;
}

.alert-processing .alert-link {
color: #959595;
}

/* If data is too wide, show scrollbars */
.data {
width: 100%;
Expand Down Expand Up @@ -127,12 +85,39 @@ table.highlighttable {
border-left: 1px solid #ccc;
}

@media (prefers-color-scheme: dark) {
.line-highlight {
background-color: hsl(var(--bulma-warning-h), var(--bulma-warning-s), 15%);
}
table.highlighttable {
border: 1px solid var(--bulma-dark);
}
.highlight pre {
border-left: 1px solid var(--bulma-dark);
}
}

/* Set minimal width and let the contents push the block width */
.linenos {
width: 1px;
}

/* Autocomplete for modify dialog */
.ui-autocomplete {
z-index: 1065;
.mr-auto {
margin-right: auto;
}

.is-text-6-5 {
font-size: 0.85rem;
}

#header .navbar {
--bulma-navbar-background-color: var(--bulma-light);
}
.has-text-deemph {
color: hsl(var(--bulma-scheme-h), var(--bulma-scheme-s), var(--bulma-text-l));
}
@media (prefers-color-scheme:dark) {
#header .navbar {
--bulma-navbar-background-color: var(--bulma-dark);
}
}
Loading