Skip to content

Density by phil294

Imported and mirrored from https://github.com/phil294/density-userstyle/raw/main/density.user.css

Screenshot of Density

Details

Authorphil294

License

Categoryunset

Created

Updated

Size18 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Reduces padding (spacing) on several common websites such as GitHub, Twitter, Reddit, ...

Notes

Userstyle doesn't have notes.

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
/* ==UserStyle==
@name Density
@namespace github.com/openstyles/stylus
@version 0.0.10
@preprocessor stylus
@author phil294
@description Reduces padding (spacing) on several common websites such as GitHub, Twitter, Reddit, ...
==/UserStyle== */

@-moz-document domain("github.com")
	.container-xl
		max-width unset
	.py-lg-3
		padding 0 !important
	.py-2
		padding-top 3px !important
		padding-bottom 3px !important
	.py-4
		padding-top 6px !important
		padding-bottom 6px !important
	.py-6
		padding-top 9px !important
		padding-bottom 9px !important
	.pt-3
		padding-top 4px !important
	.p-4
		padding 6px !important
	.p-2
		padding 2px !important
	.pt-6
		padding-top 10px !important
	.pb-2
		padding-bottom 2px !important
	.mt-6
		margin-top 10px !important
	.mt-4
		margin-top: 6px !important
	.btn-sm, .social-count
		padding 1px 4px
	.btn
		padding 1px 8px
	.p-3
		padding 4px !important
	.mt-2
		margin-top 2px !important
	.py-md-3
		padding-top 0 !important
		padding-bottom 0 !important
	.px-3
		padding-right 4px !important
		padding-left 4px !important
	.px-5
		padding-right 8px !important
		padding-left 8px !important
	.mb-2
		margin-bottom 2px !important
	.mb-4
		margin-bottom 6px !important
	.mb-md-3
		margin-bottom 4px !important
	.mt-1
		margin-top 1px !important
	.mb-5
		margin-bottom 8px !important
	.mb-3
		margin-bottom 4px !important
	.mt-3
		margin-top 4px !important
	.mt-md-2
		margin-top 2px !important
	.my-md-2
		margin-top 2px !important
		margin-bottom 2px !important
	.my-2
		margin-top 2px !important
		margin-bottom 2px !important
	.my-3
		margin-top 4px !important
		margin-bottom 4px !important
	.my-5
		margin-top 5px !important
		margin-bottom 5px !important
	.my-6
		margin-top 7px !important
		margin-bottom 7px !important
	.UnderlineNav-item
		padding 0 16px
		line-height unset
	.UnderlineNav
		min-height 30px
	p
		margin-bottom 3px
	.Box-header, .Box-body, .Box-row, .Box-footer
		padding 4px
	.form-control, .form-select
		padding 1px 3px
	.subnav-search-input
		padding-left 32px
	.subnav-search-icon
		top 4px
	.subnav-item
		padding 1px 4px
	.protip
		margin-top 5px
	.paginate-container
		margin-top 4px
		margin-bottom 4px
	.f1, h1
		font-size 22px !important
		font-weight bold
	.gh-header-actions
		margin 0 !important
	.gh-header.issue .gh-header-meta
		margin-bottom 4px
	.gh-header-meta
		padding-bottom 4px
	.state, .State
		padding 1px 6px
	.pl-lg-5, .px-lg-5
		padding-right 8px !important
		padding-left 8px !important
	.timeline-comment-header-text
		padding-top 2px
		padding-bottom 2px
	.timeline-comment-action
		padding 0
	.comment-body
		padding 4px 8px
	.TimelineItem
		margin-left 4px
	.TimelineItem-avatar
		left -56px
	.gutter-lg
		margin 0 !important
	.gutter-lg>[class*=col-]
		padding-right 4px !important
		padding-left 4px !important
	.BorderGrid
		margin-top: -4px !important
	.BorderGrid-cell
		padding-top 4px !important
		padding-bottom 4px !important
	.discussion-sidebar-item
		padding-top 4px
	.discussion-sidebar-item+.discussion-sidebar-item
		margin-top 4px
	.TimelineItem
		padding 4px 0
	.timeline-comment-wrapper
		margin-top 4px
	.tabnav-tab
		padding 2px 4px
	.toolbar-item
		padding 2px 4px
	.markdown-body blockquote, .markdown-body details, .markdown-body dl, .markdown-body ol, .markdown-body p, .markdown-body pre, .markdown-body table, .markdown-body ul
		margin-bottom 8px
	.markdown-body .highlight pre, .markdown-body pre
		padding 4px
	.py-3
		padding-top 4px !important
		padding-bottom 4px !important
	.merge-pr
		margin 5px 0 0
	.branch-action-item
		padding 4px 4px 4px 44px
	.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6
		margin-top 8px
		margin-bottom 4px
	.input-sm
		min-height unset
	svg.octicon.octicon-mark-github
		height 27px
	.avatar-user
		border-radius unset !important
	.Header
		padding 0
	body
		line-height unset
	.f1-light
		font-size unset !important
		
	.search-with-dialog, .search-suggestions .suggestion-search-input-wrapper
		height unset
	.ActionList-content.ActionList-content--sizeMedium, .ActionList-sectionDivider:not(:empty), .ActionList
		padding 2px
	.styled-text-input.text-input-wrapper
		min-height unset
		
	// new code navigation sidebar
	.iKgeOj
		padding 4px
	.gDsSpw, .lcDvUO, .fpPkRT, .cBjyGj, .cBjyGj, .gmYBDN, .jQoUbB, .hJQJzH, .bvAyRr, .dLdsTv, .jzcBSx, .hABtJb, .guWvly, .jDhUMy, .react-directory-filename-column, .react-directory-row, .dhWHwh, .daQiTK, .hDFjzJ, .nozok, .hRWVSs, button, *[type=button], .bQpLqw, .iATux, .AlbGC
		height unset !important
		min-height unset !important
		padding unset
	.ddkzeB
		padding 2px 4px
	.gDgOj, .bsCgnj
		margin 0 4px
	.pBRZy, .container-lg
		max-width unset
	.ceTNXm, .ixJeXp, .cCbWKz, .dPQTGe
		padding 4px
	.HyzZt, .kjyeyR, .iviQdF, .EGBbx, .kOlDPa, .dAarci
		margin 0
	.react-directory-filename-column, .react-directory-row, .dpQVes
		padding 2px 0
	.eoDJUk
		margin 4px 0
	.bWkbZF, .iGkPaN
		padding 0
	.bPgMQv
		gap 0
	.ieAQnd
		display flex
		
	.header-search-input
		padding 0 !important
	.py-1
		padding 0 !important
	header.py-3, header *, header *.py-3, header *.mt-3, header *.p-3
		padding 0 !important
		margin 0 !important

		
@-moz-document domain("gitlab.com"), regexp("https?://gitlab\\.[^.]+\\..+")
	.sidebar-sub-level-items > li a
		padding 2px 8px 2px 20px
	.nav-sidebar li a
		padding 6px 8px
	.nav-sidebar
		width 180px
	.toggle-sidebar-button, .close-nav-button
		width 180px
	.page-with-contextual-sidebar
		padding-left 180px
	.content-wrapper .container-fluid, .content-wrapper .container-sm, .content-wrapper .container-md, .content-wrapper .container-lg, .content-wrapper .container-xl
		padding 0 8px
	.navbar-gitlab
		height 26px
		min-height unset
	.content-wrapper
		margin-top 26px
	body
		line-height 1
	.breadcrumbs-container
		padding-top 0
		padding-bottom 0
	.breadcrumbs
		min-height unset
	.nav-links:not(.quick-links) li:not(.md-header-toolbar) a, .nav-links:not(.quick-links) li:not(.md-header-toolbar) button
		line-height 1
		padding 0 10px
	.btn, .project-buttons .stat-text
		padding 0 10px
	.row-content-block
		padding 4px
	.form-control, .search form
		padding 0
	.filtered-search-box .form-control, .filtered-search-box .search form, .search .filtered-search-box form
		height unset
	.board-labels-toggle-wrapper, .board-swimlanes-toggle-wrapper
		height unset
	.pt-3, .py-3
		padding 0 !important
	.board-title
		padding 0
	.gl-button.gl-button.btn-icon, .gl-button.gl-button.btn-block.btn-icon, .login-page input.gl-button.gl-button.btn-icon[type='submit']
		padding 0
	.p-3
		padding 3px !important
	.gl-mt-2
		margin-top unset
	.gl-mr-3
		margin-top unset
	.board-card-title
		font-size 12px
	.board-card-footer
		position absolute
		top 0
		right 0
		background rgba(255,255,255,0.8)
	.boards-list
		height unset
	.context-header>a, .context-header>button
		padding 0
	.identicon.s40
		line-height unset
	.avatar-container.s40
		min-height unset
	.s40.avatar, .s40.avatar-container
		height unset
		width 30px
	.group-home-panel, .project-home-panel
		padding 0
	.gl-mb-3
		margin-bottom 0
	.gl-banner
		padding 0
		height 65px
		overflow auto
	.gl-banner-content > *
		margin 0
	.tree-holder .add-to-tree
		padding 1px
	.breadcrumb.repo-breadcrumb
		line-height unset
	.commit
		min-height unset !important
	.clipboard-group .label, .clipboard-group .btn, .clipboard-group .project-buttons .stat-text, .project-buttons .clipboard-group .stat-text, .commit-sha-group .label, .commit-sha-group .btn, .commit-sha-group .project-buttons .stat-text, .project-buttons .commit-sha-group .stat-text
		padding 1px
	.info-well
		margin 0
	.tree-holder .nav-block
		margin 5px
	table.table tr td, .md table:not(.code) tr td, table.table tr th, .md table:not(.code) tr th
		padding 3px
	.container-limited.limit-container-width
		max-width unset
	.limit-container-width .detail-page-header, .limit-container-width .page-content-header, .limit-container-width .commit-box, .limit-container-width .info-well, .limit-container-width .commit-ci-menu, .limit-container-width .files-changed-inner, .limit-container-width .limited-header-width, .limit-container-width .limited-width-notes
		max-width unset
	.container-limited
		max-width unset
	.info-well .well-segment
		padding 2px
	.blob-content-holder
		margin-top unset
	.file-title-flex-parent, .file-holder .file-title-flex-parent
		padding 0
	ul.content-list>li
		padding 3px 0
	.dropdown-toggle, .dropdown-menu-toggle, .confidential-merge-request-fork-group .dropdown-toggle, .confidential-merge-request-fork-group .dropdown-menu-toggle
		padding 2px
	.dropdown-menu-toggle .fa-chevron-down, .dropdown-menu-toggle .fa-spinner
		top 3px
	.gl-button.gl-button, .gl-button.gl-button.btn-block, .login-page input.gl-button.gl-button[type='submit']
		padding 2px
	.form-control, .search form
		height unset
	.issues-list .issue
		padding 3px 0 0 0
	.manage-labels-list>li:not(.empty-message):not(.no-border)
		padding 1px
	.input-group-prepend .btn, .input-group-prepend .project-buttons .stat-text, .project-buttons .input-group-prepend .stat-text, .input-group-append .btn, .input-group-append .project-buttons .stat-text, .project-buttons .input-group-append .stat-text
		padding 0
	.labels-container
		padding 0
	.prioritized-labels
		margin-bottom 0
	.identicon.s64
		font-size unset
		line-height unset
	.avatar-container.s64
		min-height unset
	.s64.avatar, .s64.avatar-container
		height unset
		max-height 32px
		width auto
	.group-home-panel .home-panel-avatar, .project-home-panel .home-panel-avatar
		height unset
	.project-repo-buttons .home-panel-action-button, .project-repo-buttons .project-action-button
		margin 0
	.project-repo-buttons .count-buttons
		margin 0
	.home-panel-title-row > *
		flex-direction row !important
	.home-panel-title
		margin 0
	.project-stats .nav .stat-text, .project-stats .nav .stat-link, .project-buttons .nav .stat-text, .project-buttons .nav .stat-link
		padding 0
	.project-stats .nav .btn, .proje...

Reviews

No reviews yet.