Skip to content

Instantly share code, notes, and snippets.

@mrmrs
Created May 26, 2015 04:26
Show Gist options
  • Save mrmrs/07e2ad668bac33e2da67 to your computer and use it in GitHub Desktop.
Save mrmrs/07e2ad668bac33e2da67 to your computer and use it in GitHub Desktop.
Single purpose rulesets for medium.com that set an element to display none
/* MEDIUM */
.metabar--postSecondaryBar .voteWidget--text .icon--heart {
display: none;
}
.metabar-shareActions .button>.icon--readingList2:before,
.metabar-shareActions .button.is-active>.icon--readingList2outline:before {
display: none;
}
.metabar-shareActions .button>.icon--heart2:before,
.metabar-shareActions .button.is-active>.icon--heart2Outline:before {
display: none;
}
.metabar-bar {
display: none;
}
.metabar--postSecondaryBar .metabar-divider:first-child {
display: none;
}
.metabar--postSecondaryBar .button--addToCollection {
display: none;
}
.metabar--postArticle .metabar-center {
display: none;
}
.metabar-block .avatar-list--upvoters:after {
display: none;
}
.metabar .metabar-drawerWarning,
.metabar.is-showingDrawerWarning .metabar-drawerContent {
display: none;
}
.metabar--postSecondaryBar .metabar-shareActions {
display: none;
}
.metabar-readNext {
display: none;
}
.metabar .button--addToCollection {
display: none;
}
.button--addToCollection+.voteWidget {
display: none;
}
.postMetaInline-date {
display: none;
}
.metabar .metabar-actions {
display: none;
}
.metabar--submission .metabar-text {
display: none;
}
.metabar {
display: none;
}
.popover--collectionPanel .popover-description,
.popover--collectionPanel .button--submitToCollection,
.popover--collectionPanel .button--addToCollection,
.popover--collectionPanel .button--addDraftToCollection,
.popover--collectionPanel.is-collectionSelected .button--addToCollection,
.popover--collectionPanel.is-collectionSelected.is-addToCollection .button--addDraftToCollection,
.popover--collectionPanel.is-collectionSelected.is-addToCollection .button--submitToCollection,
.popover--collectionPanel.is-collectionSelected.is-addDraftToCollection .button--addToCollection,
.popover--collectionPanel.is-collectionSelected.is-addDraftToCollection .button--submitToCollection {
display: none;
}
.bargraph-yAxis path,
.bargraph .tick {
display: none;
}
.bargraph-xAxis path {
display: none;
}
.bargraph-yAxis g {
display: none;
}
.stats-title--chart .chartHelper {
display: none;
}
.chartTabs .date-range {
display: none;
}
.sortableTable-rowImg .sortableTable-value {
display: none;
}
.sortableTable--hide {
display: none;
}
.sortableTable-wrapper tbody .sortableTable--hide {
display: none;
}
.navTabs.is-hidden {
display: none;
}
.navTabs--metabar>.navTabs-list:-webkit-scrollbar {
display: none;
}
.bookmarkStatus-message {
display: none;
}
.bookmarkStatus:hover .readingTime {
display: none;
}
.bookmarkStatus:hover .bookmarkStatus-message {
display: none;
}
.coverPicker--headerBleed.is-withoutImage {
display: none;
}
.coverPicker.is-uploadingImage .imageControls {
display: none;
}
.infoCard-emailFollow,
.infoCard.is-emailFollowActive .infoCard-showSubscribeForm {
display: none;
}
.tags-collection .tags>a:nth-child(3)+.tags-input {
display: none;
}
.tags-editors .tags>a:nth-child(10)+.tags-input {
display: none;
}
.block--card.block--withoutImage .blockDivider:before,
.block--cardWithFullBleedImage .blockDivider:before,
.block--cardWithOutFullBleedImage .blockDivider:before,
.block--cardWithImage .blockDivider:before {
display: none;
}
.blockDivider--withoutHr:before {
display: none;
}
.insertBlockControl:last-child:before {
display: none;
}
.blockGroup-row:nth-child(odd) .block--card:last-child .block-snippet--preview,
.blockGroup-row:nth-child(even) .block--card:first-child .block-snippet--preview {
display: none;
}
.blockGroup-row:nth-child(odd) .block--cardWithFullBleedImage:first-child .block-snippet--preview,
.blockGroup-row:nth-child(even) .block--cardWithFullBleedImage:last-child .block-snippet--preview {
display: none;
}
.blockGroup-row:nth-child(odd) .block--card:first-child .shortPreview,
.blockGroup-row:nth-child(even) .block--card:last-child .shortPreview {
display: none;
}
.block--cardWithOutFullBleedImage:not(:only-child) .block-snippet--preview {
display: none;
}
.block--inset.block--cardWithOutFullBleedImage .block-snippet,
.block--inset.block--cardWithFullBleedImage .block-snippet {
display: none;
}
.layoutMultiColumn .block-image {
display: none;
}
.blockDivider:before {
display: none;
}
.blockGroup-row--withImageAndWithoutImage .block--withoutImage:not(:only-child):before {
display: none;
}
.block .block-snippet--preview {
display: none;
}
.sidebar--desktopOnly {
display: none;
}
.interstitial.is-dismissed {
display: none;
}
.followState.is-blocking>.button--follow,
.followState>.button--unblock {
display: none;
}
.listingSection--gridTextUnderImageWithMargin.is-featured+.listingSection--gridTextUnderImageWithMargin.is-featured .listingSection-header,
.listingSection--gridTextUnderImageWithMargin.is-trending+.listingSection--gridTextUnderImageWithMargin.is-trending .listingSection-header,
.listingSection--gridTextUnderImageWithMargin.is-latest+.listingSection--gridTextUnderImageWithMargin.is-latest .listingSection-header {
display: none !important;
}
.listingSection-bodyItem--fullWidth .block-snippet--preview,
.listingSection-bodyItem .block-snippet--preview {
display: none;
}
.listingSection-bodyItem--half .postMetaInline-avatar,
.listingSection-bodyItem--third .postMetaInline-avatar {
display: none;
}
.letters .block-postMetaWrap {
display: none;
}
.licenseSelector--allRightsReserved .licenseSelector-licenses {
display: none;
}
.licenseSelector-group--someRightsReserved,
.licenseSelector-group--noRightsReserved {
display: none;
}
.stats-title--chart.is-singlePost .stats-titleInner--all,
.stats-title--chart .stats-titleInner--post {
display: none;
}
.is-postEditMode .postWrapper {
display: none;
}
section:first-child>.section-divider,
section.is-backgrounded+section>.section-divider {
display: none;
}
.section-background {
display: none;
}
section.is-sectionUsingCanvas.is-imageBackgrounded .section-backgroundImage {
display: none;
}
section.is-sectionUsingCanvas.is-imageBackgrounded .section-backgroundImage {
display: none;
}
.section--bottomCenter .section-aspectRatioViewportPlaceholder {
display: none;
}
.responses .postResponse--preview {
display: none;
}
.popover-upvotes[data-count="0"] {
display: none;
}
.button--sharedraft {
display: none;
}
.mixtapeImage {
display: none;
}
.is-sectionUsingCanvas.is-darkBackgrounded .section-background {
display: none;
}
.postResponse {
display: none;
}
.postArticle--response .postField--body .section--first:not(.is-imageBackgrounded):before,
.postArticle--response .postField--body .section--first.section-image--content:before {
display: none;
}
.postFooter-actions--simple2 {
display: none;
}
.infoCard-actions {
display: none;
}
.postFooter-tags {
display: none;
}
.postFooter--readNext {
display: none;
}
.response--hidden {
display: none;
}
.responsesWrapper {
display: none;
}
.postArticle[data-allow-notes="false"] .notesMarkers,
.postArticle[data-allow-notes="false"] .notesContainer {
display: none;
}
body.is-resizing .notesMarker {
display: none;
}
.button--withoutSeparator:before,
.notesFooter .button--chromeless:first-child:before {
display: none;
}
.button--editNotesAction,
.is-notesEditMode .button--notesTextAction,
.is-notesEditMode .notesReplies .button--editNotesAction {
display: none;
}
.button--addNotes,
.is-hidingNotesEditor .notesEditContainer,
.notesAddCreatorText,
.is-notesCreator .notesAddText {
display: none;
}
.is-notesCreator .notesDisclaimer {
display: none;
}
.notesState-dropdown li {
display: none;
z-index: 10;
}
.notesReply--creator {
display: none;
}
.is-showingNotesReplyCreator .button--notesReplyLink {
display: none;
}
.button--hiddenNotesReplies,
.notesReplies--hidden .notesReplies-container {
display: none;
}
.button--dismissNotes {
display: none;
}
.is-notesVoteOpen .post-footer {
display: none;
}
.post-footer .notesRecommendations {
display: none;
}
.popover--notesVote .noteVote-mobileExitButton {
display: none;
}
.is-notesVoteOpen .postArticle {
display: none;
}
.is-showingNotesReplyCreator .notesReply--creator,
.button--notesReplyLink,
.notesFooter,
.screenContent.is-notesListVisible .newNoteEditor,
.is-showingNotesReplies .post-footer,
.is-showingNotesReplies .post-author-bottom,
.is-showingNotesReplies .notesItem,
.is-showingNotesReplies .notesControls,
.screenContent.is-notesListVisible .notesMarkers,
.newNoteEditor .notesFooter,
.notesReplies-footer,
.notesLink {
display: none;
}
.is-newNoteEditorActivated .newNoteEditor:before {
display: none;
}
.notesReply:hover .notesReply-hider {
display: none;
}
.screenContent.is-notesListVisible .notesMarker {
display: none;
}
.is-showingNotesReplies .button--dismissNotes .notesMarker-icon {
display: none;
}
.is-showingNotesReplyCreator .notesFooter,
.is-showingNotesReplyCreator .notesReplies-footer,
.is-showingNotesReplyCreator .notesFooter,
.is-notesEditMode .notesReplies-footer,
.is-notesEditMode .notesReply .notesFooter {
display: none;
}
.is-notesEditMode .notesReplies,
.is-showingNotesReplyCreator .notesReplies,
.is-showingNotesReplyCreator .notesReply,
.is-showingNotesReplyCreator .notesItem-main {
display: none;
}
.list--quotes.is-empty {
display: none;
}
.list--quotes {
display: none;
}
body.is-resizing .notesMarker-text,
.screenContent.is-notesListVisible .notesMarker-text {
display: none;
}
.paragraphControls>.notesMarker-text {
display: none;
}
.paragraphControls.is-withoutSocialLine .notesMarker-text {
display: none;
}
.paragraphControls-item .icon--heart2,
.paragraphControls-item.is-active .icon--heart2Outline75 {
display: none;
}
.screenContent.is-notesListVisible .paragraphControls-itemText--social {
display: none;
}
.paragraphControls .paragraphControls-itemText {
display: none;
}
.customTitleControl-fields {
display: none;
}
figure.is-defaultValue .imageCaption,
.graf--sectionCaption.is-defaultValue {
display: none;
}
.defaultValue {
display: none;
}
.inlineEditor--withoutAuthorInfo:not(.inlineEditor--placeholder) .inlineEditor-header,
.inlineEditor--withoutAuthorInfo.inlineEditor--placeholder .postMetaInline-avatar {
display: none;
}
.drawer-imageContainer {
display: none;
}
.highlightMenu.is-flushTop .highlightMenu-arrowClip {
display: none;
}
.inlineTooltip2.is-menuImmediatelyHidden .inlineTooltip2-menu {
display: none;
}
.inlineTooltip2 {
display: none;
}
.screenContent.is-webView .metabar,
.screenContent.is-webView .sectionControls {
display: none;
}
.hero--bookmarklet .icon--arrowLeft:before {
display: none;
}
.mdm-hide {
display: none !important;
}
.diagnostics-graphs {
display: none;
}
.diagnostics {
display: none;
}
[hidden],
template {
display: none;
}
.u-hide {
display: none !important;
}
.u-showOnNetbook {
display: none !important;
}
.u-showOnTablet {
display: none !important;
}
.u-showOnTabletPortrait,
.u-showOnTabletMini,
.u-showOnMobile {
display: none !important;
}
.u-hideOnlyOnNetbook {
display: none !important;
}
.u-md-hide {
display: none !important;
}
.u-sm-hide {
display: none !important;
}
.u-xs-hide {
display: none !important;
}
.canvas-renderer {
display: none;
}
.template-flex-article .icon--replaceImage:before {
display: none;
}
.avatar-list--upvoters {
display: none;
}
.buttonSet--profile .button--cancel,
.buttonSet--profile .button--remove,
.buttonSet--profile .button--save,
.editing .buttonSet--profile .button--edit {
display: none;
}
.editing .buttonSet--profile .button--newStory {
display: none;
}
.button.is-active>.button-label.is-default,
.button>.button-label.is-active,
.button.is-active>.icon.is-default,
.button>.icon.is-active {
display: none;
}
.button--withHover>.button-label.is-hover,
.button--withHover:hover>.button-label.is-default,
.button--withHover:focus>.button-label.is-default,
.button--withHover:active>.button-label.is-default {
display: none;
}
.is-usingCanvas .imageBleed-src {
display: none;
}
.inputGroup--selection .button--setFeatured,
.inputGroup--selection .button--setNotFeatured {
display: none;
}
.hero--standalone:after {
display: none;
}
.collectionLogo .button--delete {
display: none;
}
.collectionLogo.is-logoVisible .collectionLogo-previewName,
.collectionLogo.is-logoVisible .button--primary {
display: none;
}
.control-item--revert,
.control-item--removeBackgroundImage {
display: none;
}
.is-withoutImage .button--resizeHeaderImage,
.is-withoutImage .button--removeHeaderImage {
display: none;
}
.ie9-dialog .spinnerOverlay {
display: none;
}
.overlayRegistration--showOnShadow,
.overlayRegistration--shadow .overlayRegistration--hideOnShadow {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment