Browse Source

Many small pre-update fixes

biotorrents 3 years ago
parent
commit
34a2337a54

+ 12
- 3
classes/config.template.php View File

@@ -55,15 +55,15 @@ ENV::setPub('DEV', true);
55 55
 ENV::setPub(
56 56
     'SITE_NAME',
57 57
     (!$ENV->DEV
58
-        ? 'BioTorrents.de' # Production
59
-        : '[Dev] BioTorrents.de') # Development
58
+        ? 'torrents.bio' # Production
59
+        : 'dev.torrents.bio') # Development
60 60
 );
61 61
 
62 62
 # Meta description
63 63
 ENV::setPub('DESCRIPTION', 'A platform to share biological sequence and medical imaging data');
64 64
 
65 65
 # Navigation glyphs
66
-ENV::setPub('SEP', ''); # e.g., News ⸬ BioTorrents.de
66
+ENV::setPub('SEP', '-'); # e.g., News ⸬ BioTorrents.de
67 67
 ENV::setPub('CRUMB', '›'); # e.g., Forums › Board › Thread
68 68
 
69 69
 # The FQDN of your site, e.g., dev.biotorrents.de
@@ -80,6 +80,15 @@ ENV::setPub(
80 80
         : 'dev.biotorrents.de') # Development
81 81
 );
82 82
 
83
+# Old domain, to handle the biotorrents.de => torrents.bio migration
84
+# If not needed, simply set to the same values as $ENV->SITE_DOMAIN
85
+ENV::setPub(
86
+    'OLD_SITE_DOMAIN',
87
+    (!$ENV->DEV
88
+        ? 'biotorrents.de' # Production
89
+        : 'dev.biotorrents.de') # Development
90
+);
91
+
83 92
 # The FQDN of your image host, e.g., pics.biotorrents.de
84 93
 ENV::setPub('IMAGE_DOMAIN', 'pics.biotorrents.de');
85 94
 

+ 2
- 1
classes/security.class.php View File

@@ -21,7 +21,8 @@ class Security
21 21
     {
22 22
         foreach ($IDs as $ID) {
23 23
             if (!ID || !is_int($ID) || $ID < 1) {
24
-                error("Expected an integer > 1, got $ID in Security::checkInt.");
24
+                return "Expected an integer > 1, got $ID in Security::checkInt.";
25
+                #error("Expected an integer > 1, got $ID in Security::checkInt.");
25 26
             }
26 27
         }
27 28
 

+ 1
- 1
classes/text.class.php View File

@@ -137,7 +137,7 @@ class Text
137 137
     public function fix_links($Parsed) {
138 138
             # Replace links to $ENV->SITE_DOMAIN
139 139
             $Parsed = preg_replace(
140
-                "/<a href=\"$ENV->RESOURCE_REGEX$ENV->SITE_DOMAIN\//",
140
+                "/<a href=\"$ENV->RESOURCE_REGEX($ENV->SITE_DOMAIN|$ENV->OLD_SITE_DOMAIN)\//",
141 141
                 '<a href="/',
142 142
                 $Parsed
143 143
             );

+ 6
- 1
classes/util.php View File

@@ -508,7 +508,12 @@ function json_print($Status, $Message)
508 508
         $response = ['status' => $Status, 'response' => []];
509 509
     }
510 510
 
511
-    print(json_encode(add_json_info($response)));
511
+    print(
512
+        json_encode(
513
+            add_json_info($response),
514
+            JSON_UNESCAPED_SLASHES
515
+        )
516
+    );
512 517
 }
513 518
 
514 519
 /**

+ 3
- 1
design/privateheader.php View File

@@ -333,11 +333,13 @@ if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Ad
333 333
             size="17">
334 334
         </form>
335 335
 
336
+        <!--
336 337
         <form class="search_form" name="artists" action="artist.php" method="get">
337
-          <input id="artistsearch" <?=Users::has_autocomplete_enabled('search')?>
338
+          <input id="artistsearch" <?=null#Users::has_autocomplete_enabled('search')?>
338 339
           aria-label="Search authors" accesskey="a" spellcheck="false" autocomplete="off" placeholder="Authors"
339 340
           type="text" name="artistname" size="17">
340 341
         </form>
342
+          -->
341 343
 
342 344
         <form class="search_form" name="requests" action="requests.php" method="get">
343 345
           <input id="requestssearch" aria-label="Search requests" spellcheck="false" autocomplete="off"

+ 1
- 1
readme.md View File

@@ -25,7 +25,7 @@ BioTorrents.de supports an array of
25 25
 with the appropriate bold/italic glyphs and monospace.
26 26
 These options are available to every theme.
27 27
 Font Awesome 5 is also universally available.
28
-[Download the fonts](https://docs.biotorrents.de/dl/fonts.tgz).
28
+[Download the fonts](https://torrents.bio/fonts.tgz).
29 29
 
30 30
 ## Markdown support
31 31
 

+ 10
- 10
sections/api/torrents/group.php View File

@@ -81,15 +81,15 @@ $JsonTorrentDetails = [
81 81
     'id'            => (int) $TorrentDetails['id'],
82 82
     'identifier'    => $TorrentDetails['identifier'],
83 83
 
84
-    'category_id'   => (int) $TorrentDetails['category_id'],
85
-    'category_name' => $CategoryName,
84
+    'categoryId'   => (int) $TorrentDetails['category_id'],
85
+    'categoryName' => $CategoryName,
86 86
 
87 87
     'title'         => $TorrentDetails['title'],
88 88
     'subject'       => $TorrentDetails['subject'],
89 89
     'object'        => $TorrentDetails['object'],
90 90
 
91 91
     'authors'       => $Artists,
92
-    'published'     => (int) $TorrentDetails['published'],
92
+    'year'          => (int) $TorrentDetails['year'],
93 93
     'workgroup'     => $TorrentDetails['workgroup'],
94 94
     'location'      => $TorrentDetails['location'],
95 95
 
@@ -99,7 +99,7 @@ $JsonTorrentDetails = [
99 99
     'description'   => $TorrentDetails['description'],
100 100
    #'description'   => Text::full_format($TorrentDetails['description']),
101 101
     'picture'       => $TorrentDetails['picture'],
102
-    'tag_list'      => $TagList,
102
+    'tagList'      => $TagList,
103 103
 
104 104
     'bookmarked'    => Bookmarks::has_bookmarked('torrent', $GroupID),
105 105
     'timestamp'     => $TorrentDetails['timestamp'],
@@ -128,7 +128,7 @@ foreach ($TorrentList as $Torrent) {
128 128
     # todo: Update DB schema
129 129
     $JsonTorrentList[] = [
130 130
         'id'           => (int) $Torrent['ID'],
131
-        'info_hash'    => $Torrent['InfoHash'],
131
+        'infoHash'    => $Torrent['InfoHash'],
132 132
         'description'  => $Torrent['Description'],
133 133
 
134 134
         'platform'     => $Torrent['Media'],
@@ -139,19 +139,19 @@ foreach ($TorrentList as $Torrent) {
139 139
 
140 140
         'size'         => (int) $Torrent['Size'],
141 141
         'archive'      => $Torrent['Archive'],
142
-        'file_count'   => (int) $Torrent['FileCount'],
143
-        'file_path'    => $Torrent['FilePath'],
144
-        'file_list'    => $FileList,
142
+        'fileCount'   => (int) $Torrent['FileCount'],
143
+        'filePath'    => $Torrent['FilePath'],
144
+        'fileList'    => $FileList,
145 145
 
146 146
         'seeders'      => (int) $Torrent['Seeders'],
147 147
         'leechers'     => (int) $Torrent['Leechers'],
148 148
         'snatched'     => (int) $Torrent['Snatched'],
149
-        'free_torrent' => ($Torrent['FreeTorrent'] === 1),
149
+        'freeTorrent' => ($Torrent['FreeTorrent'] === 1),
150 150
 
151 151
         'reported'     => (bool) $Torrent['Reported'],
152 152
         'time'         => $Torrent['Time'],
153 153
 
154
-        'user_id'      => (int) ($Torrent['Anonymous'] ? 0 : $Torrent['UserID']),
154
+        'userId'      => (int) ($Torrent['Anonymous'] ? 0 : $Torrent['UserID']),
155 155
         'username'     => ($Torrent['Anonymous'] ? 'Anonymous' : $Userinfo['Username']),
156 156
     ];
157 157
 }

+ 5
- 5
sections/api/torrents/torrent.php View File

@@ -1,5 +1,5 @@
1 1
 <?php
2
-declare(strict_types=1);
2
+#declare(strict_types=1);
3 3
 
4 4
 require_once SERVER_ROOT.'/sections/torrents/functions.php';
5 5
 
@@ -54,13 +54,13 @@ $JsonTorrentDetails = [
54 54
   'subject'     => $TorrentDetails['subject'],
55 55
   'object'       => $TorrentDetails['object'],
56 56
   'authors'      => $Artists,
57
-  'published'         => (int) $TorrentDetails['published'],
57
+  'year'         => (int) $TorrentDetails['published'],
58 58
   'identifier'    => $TorrentDetails['identifier'],
59
-  'category_id'   => (int) $TorrentDetails['category_id'],
60
-  'icategory_name' => $CategoryName,
59
+  'categoryId'   => (int) $TorrentDetails['category_id'],
60
+  'icategoryName' => $CategoryName,
61 61
   'timestamp'         => $TorrentDetails['timestamp'],
62 62
   'bookmarked' => Bookmarks::has_bookmarked('torrent', $GroupID),
63
-  'tag_list'         => $TagList
63
+  'tagList'         => $TagList
64 64
 ];
65 65
 
66 66
 $Torrent = $TorrentList[$TorrentID];

+ 1
- 1
sections/forums/search.php View File

@@ -229,7 +229,7 @@ if (empty($ThreadID)) {
229 229
     </tr>
230 230
     <tr>
231 231
       <td colspan="2" class="center">
232
-        <input type="submit" value="Search" />
232
+        <input type="submit" class="button-primary" value="Search" />
233 233
       </td>
234 234
     </tr>
235 235
     </table>

+ 1
- 1
sections/torrents/functions.php View File

@@ -81,7 +81,7 @@ function get_group_info($GroupID, $Return = true, $RevisionID = 0, $PersonalProp
81 81
           `id`,
82 82
           `user_id`,
83 83
           `timestamp`,
84
-          `resource`
84
+          `uri`
85 85
         FROM
86 86
           `torrents_mirrors`
87 87
         WHERE

+ 1
- 1
sections/upload/upload_handle.php View File

@@ -710,7 +710,7 @@ if (!empty($T['Mirrors'])) {
710 710
     foreach ($Mirrors as $Mirror) {
711 711
         $DB->query(
712 712
             "
713
-        INSERT INTO torrents_mirrors
713
+        INSERT INTO `torrents_mirrors`
714 714
           (`torrent_id`, `user_id`, `timestamp`, `uri`)
715 715
         VALUES (?, ?, NOW(), ?)",
716 716
             $TorrentID,

+ 2
- 2
sections/user/edit.php View File

@@ -156,7 +156,7 @@ $ProfileRewards = Donations::get_profile_rewards($UserID);
156 156
           </li>
157 157
 
158 158
           <li>
159
-            <input type="submit" id="submit" value="Save profile" />
159
+            <input type="submit" id="submit" class="button-primary" value="Save profile" />
160 160
           </li>
161 161
 
162 162
         </ul>
@@ -313,7 +313,7 @@ HTML;
313 313
           <td>
314 314
             <label>
315 315
               <input type="checkbox" name="autoload_comm_stats" <?Format::selected(
316
-              'AutoloadCommStats' ,
316
+              'AutoloadCommStats',
317 317
               1,
318 318
               'checked',
319 319
               $SiteOptions

+ 69
- 108
static/styles/beluga/scss/beluga.scss View File

@@ -3,107 +3,6 @@
3 3
     padding: 0;
4 4
 }
5 5
 
6
-.cats_sequences,
7
-.cats_graphs,
8
-.cats_systems,
9
-.cats_geometric,
10
-.cats_scalars\/vectors,
11
-.cats_patterns,
12
-.cats_constraints,
13
-.cats_images,
14
-.cats_spatial,
15
-.cats_models,
16
-.cats_documents,
17
-.cats_machinedata {
18
-    width: 38px !important;
19
-    height: 38px !important;
20
-    line-height: 38px;
21
-}
22
-
23
-.cats_sequences:after {
24
-    content: "SEQ";
25
-    color: #3eaca7;
26
-    font-size: 18px;
27
-    letter-spacing: -2px;
28
-}
29
-
30
-.cats_graphs:after {
31
-    content: "GRF";
32
-    color: #1d818e;
33
-    font-size: 18px;
34
-    letter-spacing: -2px;
35
-}
36
-
37
-.cats_systems:after {
38
-    content: "SYS";
39
-    color: #88c796;
40
-    font-size: 18px;
41
-    letter-spacing: -2px;
42
-}
43
-
44
-.cats_geometric:after {
45
-    content: "GEO";
46
-    color: #4dc593;
47
-    font-size: 18px;
48
-    letter-spacing: -2px;
49
-}
50
-
51
-.cats_scalars\/vectors:after {
52
-    content: "MC2";
53
-    color: #77c5d4;
54
-    font-size: 18px;
55
-    letter-spacing: -2px;
56
-}
57
-
58
-.cats_patterns:after {
59
-    content: "PAT";
60
-    color: #0d5968;
61
-    font-size: 18px;
62
-    letter-spacing: -2px;
63
-}
64
-
65
-.cats_constraints:after {
66
-    content: "CNST";
67
-    color: #3eaca7;
68
-    font-size: 18px;
69
-    letter-spacing: -2px;
70
-}
71
-
72
-.cats_images:after {
73
-    content: "IMG";
74
-    color: #1d818e;
75
-    font-size: 18px;
76
-    letter-spacing: -2px;
77
-}
78
-
79
-.cats_spatial:after {
80
-    content: "SPTL";
81
-    color: #88c796;
82
-    font-size: 18px;
83
-    letter-spacing: -2px;
84
-}
85
-
86
-.cats_models:after {
87
-    content: "MOD";
88
-    color: #4dc593;
89
-    font-size: 18px;
90
-    letter-spacing: -2px;
91
-}
92
-
93
-.cats_documents:after {
94
-    content: "DOC";
95
-    color: #77c5d4;
96
-    font-size: 18px;
97
-    letter-spacing: -2px;
98
-}
99
-
100
-.cats_machinedata:after {
101
-    content: "RAW";
102
-    color: #0d5968;
103
-    font-size: 18px;
104
-    letter-spacing: -2px;
105
-}
106
-
107 6
 body {
108 7
     width: 100%;
109 8
     font-family: "Open Sans", Helvetica, Arial, Tahoma, sans-serif;
@@ -197,6 +96,33 @@ input {
197 96
     color: #fff;
198 97
 }
199 98
 
99
+/* Buttons */
100
+button:not(.editor-toolbar button),
101
+input[type="button"],
102
+input[type="submit"] {
103
+    background: change-color(whitesmoke, $alpha: 0.75);
104
+    color: black;
105
+    border: 1px solid #bbb;
106
+
107
+    &.button-primary {
108
+        background: #50aca7;
109
+        border: 1px solid #bbb;
110
+        color: black;
111
+    }
112
+
113
+    &:hover {
114
+        background: #317f8e;
115
+        /* Primary hover default blue */
116
+        border: 1px solid #bbb !important;
117
+        color: black !important;
118
+    }
119
+
120
+    &:focus {
121
+        background: #2f707c;
122
+    }
123
+}
124
+
125
+/*
200 126
 button,
201 127
 input[type="button"],
202 128
 input[type="submit"] {
@@ -216,6 +142,7 @@ input[type="button"]:focus,
216 142
 input[type="submit"]:focus {
217 143
     background-color: #2f707c;
218 144
 }
145
+*/
219 146
 
220 147
 .spoilerButton {
221 148
     max-width: 604px;
@@ -351,11 +278,13 @@ ul.thin li {
351 278
     padding-top: 0;
352 279
 }
353 280
 
281
+/*
354 282
 .sidebar {
355 283
     float: right;
356 284
     width: 244px;
357 285
     height: 100%;
358 286
 }
287
+*/
359 288
 
360 289
 .sidebar .box .pad form {
361 290
     padding-bottom: 20px;
@@ -366,10 +295,12 @@ ul.thin li {
366 295
     padding: 5px 10px 10px 10px;
367 296
 }
368 297
 
298
+/*
369 299
 .main_column {
370 300
     width: 646px;
371 301
     float: left;
372 302
 }
303
+*/
373 304
 
374 305
 #logo {
375 306
     width: 900px;
@@ -386,7 +317,7 @@ ul.thin li {
386 317
 }
387 318
 
388 319
 #logo a::before {
389
-    content: "BioTorrents.de";
320
+    content: "torrents.bio";
390 321
     font-size: 40px;
391 322
     line-height: 56px;
392 323
     font-weight: 100;
@@ -1433,11 +1364,6 @@ blockquote {
1433 1364
     padding: 10px;
1434 1365
 }
1435 1366
 
1436
-blockquote,
1437
-pre {
1438
-    background-color: #23252a !important;
1439
-}
1440
-
1441 1367
 .signature {
1442 1368
     border-top: 1px dotted #666;
1443 1369
     margin: 2em 0 0;
@@ -1534,11 +1460,17 @@ ul .invitetree {
1534 1460
 
1535 1461
 pre {
1536 1462
     color: #fff;
1537
-    border: 1px dashed #55585f;
1463
+    background: black;
1464
+    border: 1px dashed #55585f !important;
1538 1465
     margin: 10px;
1539 1466
     padding: 10px;
1540 1467
 }
1541 1468
 
1469
+code {
1470
+    background: black;
1471
+    border: none;
1472
+}
1473
+
1542 1474
 #donation {
1543 1475
     position: absolute;
1544 1476
     display: inline;
@@ -1901,6 +1833,7 @@ div#gift {
1901 1833
     z-index: 999;
1902 1834
 }
1903 1835
 
1836
+/*
1904 1837
 .button {
1905 1838
     border: 0 solid #131313;
1906 1839
     color: #eee;
@@ -1911,6 +1844,7 @@ div#gift {
1911 1844
     text-transform: uppercase;
1912 1845
     padding: 5px 12px;
1913 1846
 }
1847
+*/
1914 1848
 
1915 1849
 #store #content {
1916 1850
     position: relative;
@@ -2312,6 +2246,32 @@ body.style_pink ::-moz-selection {
2312 2246
     background: #8b518e;
2313 2247
 }
2314 2248
 
2249
+/* Buttons */
2250
+body.style_pink button:not(.editor-toolbar button),
2251
+body.style_pink input[type="button"],
2252
+body.style_pink input[type="submit"] {
2253
+    color: black;
2254
+    border: 1px solid #bbb;
2255
+
2256
+    &.button-primary {
2257
+        background: #8b518e;
2258
+        border: 1px solid #bbb;
2259
+        color: black;
2260
+    }
2261
+
2262
+    &:hover {
2263
+        background: #643c72;
2264
+        /* Primary hover default blue */
2265
+        border: 1px solid #bbb !important;
2266
+        color: black !important;
2267
+    }
2268
+
2269
+    &:focus {
2270
+        background: #78467f;
2271
+    }
2272
+}
2273
+
2274
+/*
2315 2275
 body.style_pink button,
2316 2276
 body.style_pink input[type="button"],
2317 2277
 body.style_pink input[type="submit"] {
@@ -2329,6 +2289,7 @@ body.style_pink input[type="button"]:focus,
2329 2289
 body.style_pink input[type="submit"]:focus {
2330 2290
     background-color: #78467f;
2331 2291
 }
2292
+*/
2332 2293
 
2333 2294
 body.style_pink #userinfo_stats {
2334 2295
     color: #db7bc7;

+ 25
- 61
static/styles/bookish/matcha/matcha.scss View File

@@ -45,7 +45,6 @@ body.style_matcha {
45 45
         width: 100%;
46 46
         z-index: 99999;
47 47
         margin-top: 2.4em;
48
-        /* margin-top: 32px; */
49 48
         left: 0;
50 49
     }
51 50
 
@@ -172,59 +171,26 @@ body.style_matcha {
172 171
         z-index: 100;
173 172
     }
174 173
 
175
-    /* Alerts, Toolbox, etc. */
176
-    .alertbar {
177
-        background-color: #fff9c7;
178
-        text-align: center;
179
-        color: black;
180
-        font-weight: bold;
181
-        width: 320px;
182
-        margin: 2em auto;
183
-        padding: 1em;
184
-
185
-        a {
186
-            color: black;
187
-            text-decoration: none;
188
-
189
-            &:hover {
190
-                color: black;
191
-                text-decoration: underline;
192
-            }
193
-        }
194
-
195
-        .warning {
196
-            background-color: #ffe68a;
197
-        }
198
-
199
-        .error {
200
-            background-color: #ff8a8a;
201
-        }
202
-    }
203
-
204 174
     /* Column heads */
205
-    .head {
206
-        background: #9fedd7;
207
-        color: black;
208
-        padding: 0.5em 1em;
209
-    }
210
-
211
-    .colhead {
212
-        background: #9fedd7;
213
-        font-weight: bold;
214
-        color: black;
215
-    }
216
-
175
+    .head,
176
+    .colhead,
217 177
     .colhead_dark {
218 178
         background: #9fedd7;
179
+        border-bottom: 2px solid change-color(black, $alpha: 0.25);
219 180
         color: black;
181
+        padding: 0.5em 1em;
220 182
     }
221 183
 
222 184
     /* Box */
223 185
     .box,
224
-    section {
186
+    .pad,
187
+    section,
188
+    /* Exceptions, fixes, etc. */
189
+    table.user_options {
225 190
         background-color: white;
226 191
         border: none;
227 192
         margin-bottom: 1em;
193
+        padding: 0.5rem;
228 194
     }
229 195
 
230 196
     /* Shadows */
@@ -236,7 +202,7 @@ body.style_matcha {
236 202
     .forum_index,
237 203
     #userinfo_minor > li > ul,
238 204
     .permissions table {
239
-        box-shadow: 2px 2px 10px -2px slategray;
205
+        box-shadow: 0 5px 4px -4px slategray;
240 206
     }
241 207
 
242 208
     /* Links */
@@ -282,21 +248,24 @@ body.style_matcha {
282 248
     button:not(.editor-toolbar button),
283 249
     input[type="button"],
284 250
     input[type="submit"] {
285
-        background: #fbe180;
286
-        border-radius: 0.25rem;
251
+        color: black;
252
+        border: 1px solid #bbb;
287 253
         box-shadow: 2px 2px 10px -5px slategray;
288
-    }
289 254
 
290
-    button:hover,
291
-    input[type="button"]:hover,
292
-    input[type="submit"]:hover {
293
-        background: #fff9c7;
294
-    }
255
+        &.button-primary {
256
+            background: #fbe180;
257
+        }
295 258
 
296
-    button:focus,
297
-    input[type="button"]:focus,
298
-    input[type="submit"]:focus {
299
-        background: #fff9c7;
259
+        &:hover {
260
+            background: #fff9c7;
261
+            /* Primary hover default blue */
262
+            border: 1px solid #bbb;
263
+            color: black;
264
+        }
265
+
266
+        &:focus {
267
+            background: #fff9c7;
268
+        }
300 269
     }
301 270
 
302 271
     /* Text input */
@@ -363,9 +332,4 @@ body.style_matcha {
363 332
     .forum_post.sticky_post {
364 333
         border: 2px solid #fbe180;
365 334
     }
366
-
367
-    /* Inbox */
368
-    tr.unreadpm {
369
-        background-color: #fff9c7;
370
-    }
371 335
 } /* end body.style_matcha */

+ 0
- 29
static/styles/bookish/scss/layout.scss View File

@@ -12,7 +12,6 @@
12 12
 #content {
13 13
     margin: auto;
14 14
     margin-top: 2rem;
15
-    /* min-width: 720px; */
16 15
     overflow: hidden;
17 16
     width: 90%;
18 17
 }
@@ -44,34 +43,6 @@
44 43
     }
45 44
 }
46 45
 
47
-/* Main column and sidebar */
48
-@mixin column-flex($width) {
49
-    display: flex;
50
-    flex-direction: column;
51
-    align-items: stretch;
52
-    max-width: $width;
53
-    min-height: 0;
54
-    padding: 0 0.25rem;
55
-}
56
-
57
-.main_column {
58
-    @include column-flex(64%);
59
-
60
-    table {
61
-        margin-bottom: 1rem;
62
-    }
63
-}
64
-
65
-.sidebar {
66
-    @include column-flex(34%);
67
-    float: right;
68
-}
69
-
70
-/* Box: soon to be <section> */
71
-.box {
72
-    margin-bottom: 1rem;
73
-}
74
-
75 46
 /* Links */
76 47
 div.linkbox {
77 48
     text-align: center;

+ 44
- 0
static/styles/global/scss/layout.scss View File

@@ -7,6 +7,50 @@
7 7
     padding: 0;
8 8
 }
9 9
 
10
+/**
11
+ * Main column and sidebar
12
+ */
13
+
14
+/* Main column and sidebar */
15
+@mixin column-flex($width) {
16
+    display: flex;
17
+    flex-direction: column;
18
+    align-items: stretch;
19
+    max-width: $width;
20
+    min-height: 0;
21
+    padding: 0 0.25rem;
22
+}
23
+
24
+.main_column {
25
+    @include column-flex(64%);
26
+
27
+    table {
28
+        margin-bottom: 1rem;
29
+    }
30
+}
31
+
32
+.sidebar {
33
+    @include column-flex(34%);
34
+    width: 34%;
35
+    float: right;
36
+
37
+    &.fixed {
38
+        width: 34%;
39
+    }
40
+}
41
+
42
+.sidebar {
43
+    float: right;
44
+    width: 30%;
45
+    min-width: 20%;
46
+    margin-right: 1rem;
47
+}
48
+
49
+/* Box: soon to be <section> */
50
+.box {
51
+    margin-bottom: 1rem;
52
+}
53
+
10 54
 /*
11 55
  * Flex elements
12 56
  */

+ 2
- 1
static/styles/global/scss/skeleton-fixes.scss View File

@@ -91,6 +91,7 @@ legend {
91 91
 /* forum lists */ table.forum_index,
92 92
 /* notif filters */ form[name="notification"],
93 93
 /* service stats */ div.permission_container,
94
+/* user settings */ table.user_options,
94 95
 /* GENERIC */ table.skeleton-fix {
95 96
     td {
96 97
         border-bottom: 0 !important;
@@ -130,7 +131,7 @@ code {
130 131
 }
131 132
 
132 133
 /* Unordered lists */
133
-ul {
134
+ul:not(.nobullet) {
134 135
     list-style: circle outside !important;
135 136
 }
136 137
 

+ 30
- 7
static/styles/oppai/scss/oppai.scss View File

@@ -35,6 +35,33 @@ a:hover {
35 35
     color: #555;
36 36
 }
37 37
 
38
+/* Buttons */
39
+button:not(.editor-toolbar button),
40
+input[type="button"],
41
+input[type="submit"] {
42
+    color: black;
43
+    border: 1px solid #bbb;
44
+    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
45
+
46
+    &.button-primary {
47
+        background: #eaabed;
48
+        border: 1px solid #bbb;
49
+        color: black;
50
+    }
51
+
52
+    &:hover {
53
+        background: #e197e5 !important;
54
+        /* Primary hover default blue */
55
+        border: 1px solid #bbb !important;
56
+        color: black !important;
57
+    }
58
+
59
+    &:focus {
60
+        background: #d48dd8;
61
+    }
62
+}
63
+
64
+/*
38 65
 button,
39 66
 input[type="button"],
40 67
 input[type="submit"] {
@@ -53,6 +80,7 @@ input[type="button"]:focus,
53 80
 input[type="submit"]:focus {
54 81
     background: #d48dd8;
55 82
 }
83
+*/
56 84
 
57 85
 .spoilerButton {
58 86
     max-width: 540px;
@@ -546,11 +574,6 @@ div.linkbox {
546 574
     padding-top: 0px;
547 575
 }
548 576
 
549
-.sidebar {
550
-    float: right;
551
-    width: 245px;
552
-}
553
-
554 577
 .head {
555 578
     padding: 4px;
556 579
     /* border-bottom: 1px solid #666; */
@@ -563,8 +586,8 @@ div.linkbox {
563 586
     padding: 3px 10px 10px 10px;
564 587
 }
565 588
 
566
-.main_column {
567
-    width: 592px;
589
+#content {
590
+    max-width: 67%;
568 591
 }
569 592
 
570 593
 .main_column table {

+ 5
- 2
templates/legal/about.html View File

@@ -3,6 +3,8 @@
3 3
 <section class="tldr">
4 4
   <p>
5 5
     BioTorrents.de is a functional experiment in comfy data distribution.
6
+    The tagline is "What.cd for genome sequences."
7
+    The scope is multidisciplinary and social science friendly.
6 8
   </p>
7 9
 
8 10
   <p>
@@ -12,9 +14,10 @@
12 14
   </p>
13 15
 
14 16
   <p>
15
-    BioTorrents.de provides an open platform for disadvantaged researchers to host their data.
17
+    BioTorrents.de is an open platform for disadvantaged researchers to host their data.
16 18
     More importantly, it provides the necessary tools for others to find and cite it later.
17 19
     It's a place for the Google Drives, FTP folders, and network shares that may not be accepted elsewhere.
20
+    It also plays well with institutional repositories and can efficiently mirror their data.
18 21
   </p>
19 22
 
20 23
   <p>
@@ -27,7 +30,7 @@
27 30
       Email
28 31
     </strong>
29 32
     <br />
30
-    help at biotorrents dot de
33
+    hello at torrents dot bio 
31 34
   </p>
32 35
 
33 36
   <p>

+ 3
- 3
templates/legal/dmca.html View File

@@ -3,8 +3,8 @@
3 3
 <section class="tldr">
4 4
   <p>
5 5
     <em>If</em> you're a copyright owner or an agent of one,
6
-    <em>and</em> you believe that user-generated content on the domain
7
-    https://biotorrents.de infringes your copyrights:
6
+    <em>and</em> you reasonably believe that user-generated content on the domains
7
+    torrents.bio or biotorrents.de infringes your copyrights:
8 8
     <em>then</em> you may notify our Digital Millennium Copyright Act (DMCA) agent in writing.
9 9
   </p>
10 10
 
@@ -69,7 +69,7 @@
69 69
       Email
70 70
     </strong>
71 71
     <br />
72
-    dmca at biotorrents dot de
72
+    dmca at torrents dot bio 
73 73
   </p>
74 74
 
75 75
   <p>

+ 2
- 2
templates/legal/privacy.html View File

@@ -188,7 +188,7 @@
188 188
   </h3>
189 189
 
190 190
   <p>
191
-    We last updated this policy on 2021-07-14.
191
+    We last updated this policy on 2021-07-28.
192 192
   </p>
193 193
 
194 194
 
@@ -220,7 +220,7 @@
220 220
       Email
221 221
     </strong>
222 222
     <br />
223
-    privacy at biotorrents dot de
223
+    privacy at torrents dot bio 
224 224
   </p>
225 225
 
226 226
   <p>

Loading…
Cancel
Save