Skip to content

Notion table auto-number by ayugioh2003

Imported and mirrored from https://github.com/ayugioh2003/notion-table-auto-number/raw/main/auto-number.user.css

Screenshot of Notion table auto-number

Details

Authorayugioh2003

LicenseMIT

Categorynotion.so

Created

Updated

Size1.0 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Let notion table has auto-number feature

Notes

Source code

@-moz-document domain("notion.so") {
/* ==UserStyle==
@name         Notion table auto-number
@namespace    https://github.com/ayugioh2003
@version      20220213.23.04
@description  Let notion table has auto-number feature
@author       Chiu Chi Wei (https://github.com/ayugioh2003)
@homepageURL  https://github.com/ayugioh2003/notion-table-auto-number
@supportURL   https://github.com/ayugioh2003/notion-table-auto-number/issues
@license      MIT
@preprocessor default
==/UserStyle== */
}

@-moz-document domain("notion.so") {
.notion-collection_view-block {
  list-style-type: none;
  counter-reset: css-counter 0; /* initializes counter to 0; use -1 for zero-based numbering */
}

.notion-collection-item {
  counter-increment: css-counter 1; /* Increase the counter by 1. */
  transform: translateX(-2rem);
}

.notion-collection-item:before {
  content: counter(css-counter, decimal-leading-zero) ". | "; /* Apply counter before children's content. */
  color: brown;
  width: 2rem;
}
}

Reviews

No reviews yet.