Remove border and padding

Not permanent, just wanted to get rid of them

FossilOrigin-Name: a830bf62557a9b40d7d10ed6ab3059975f04b62a933a368a1fa3282055374473
This commit is contained in:
me@ow.nekobit.net 2022-03-03 20:38:51 +00:00
parent cd3ae97fa5
commit a4e10187a8
4 changed files with 28 additions and 15 deletions

33
dist/ratfe20.css vendored
View file

@ -71,9 +71,11 @@ body
min-width: 640px;
overflow: hidden;
min-height: 600px;
border-collapse: collapse !important;
padding: 0;
}
#content, tr, td
#content
{
border-collapse: collapse !important;
}
@ -170,6 +172,10 @@ ul li:first-child a.sidebarbtn
padding: 4px 2px 0 4px;
border-bottom: 1px solid #cacaca !important;
width: 100%;
border-collapse: collapse !important;
border-spacing: 0px;
margin: 0;
padding: 0;
}
.status .profile-picture
@ -188,6 +194,8 @@ ul li:first-child a.sidebarbtn
.pfp-td
{
width: 56px;
border-collapse: collapse !important;
padding: 0;
}
.status tr
@ -195,6 +203,7 @@ ul li:first-child a.sidebarbtn
width: auto;
}
.status .status-info
{
display: flex;
@ -202,6 +211,14 @@ ul li:first-child a.sidebarbtn
min-width: 0;
flex-direction: column;
width: auto;
padding: 0;
}
.status .status-info table, .status .status-info td, .status .status-info tr
{
border-collapse: collapse !important;
padding: 0;
margin: 0;
}
.status .instance-info
@ -248,22 +265,18 @@ ul li:first-child a.sidebarbtn
display: flex;
}
.status-interact ul
.status-interact table
{
display: flex;
border-collapse: collapse !important;
padding: 0;
margin: 0;
}
.status-interact ul li
.status-interact table tr
{
display: inline-block;
margin: 0;
border-collapse: collapse !important;
padding: 0;
list-style-type: none;
}
/***************************
* Element Grouping *
**************************/
@ -462,7 +475,7 @@ ul li:first-child a.sidebarbtn
border: 0 !important;
}
.status-interact ul li:not(:last-child) .nobutton
.status-interact tr td:not(:last-child) .nobutton
{
border-right: 1px solid #cacaca !important;

View file

@ -40,7 +40,7 @@ void content_login(mastodont_t* api, char** data, size_t data_size)
if (post.username && post.password)
{
// Getting the client id/secret
struct mstdnt_app_register_args args_app = {
struct mstdnt_args args_app = {
.client_name = "RatFE",
.redirect_uris = "http://localhost/",
.scopes = "read+write+follow+push",
@ -49,7 +49,7 @@ void content_login(mastodont_t* api, char** data, size_t data_size)
mastodont_register_app(api, &args_app, &storage, &app);
struct mstdnt_oauth_token_args args_token = {
struct mstdnt_args args_token = {
.grant_type = "password",
.client_id = app.client_id,
.client_secret = app.client_secret,

View file

@ -41,7 +41,7 @@ int try_post_status(mastodont_t* api)
struct mstdnt_storage storage;
// Cookie copy and read
struct mstdnt_create_status_args args = {
struct mstdnt_args args = {
.content_type = "text/plain",
.expires_in = 0,
.in_reply_to_conversation_id = NULL,

View file

@ -35,7 +35,7 @@ void tl_public(mastodont_t* api, int local)
char* status_format, *post_box;
char* output = NULL;
struct mstdnt_timeline_public_args args = {
struct mstdnt_args args = {
.local = local,
.remote = 0,
.only_media = 0,
@ -89,7 +89,7 @@ void tl_list(mastodont_t* api, char* list_id)
char* status_format, *post_box;
char* output = NULL;
struct mstdnt_timeline_list_args args = {
struct mstdnt_args args = {
.max_id = NULL,
.since_id = NULL,
.min_id = NULL,