Giter Club home page Giter Club logo

Comments (2)

syifeng avatar syifeng commented on June 29, 2024

No description provided.

Did you get the solution?

from admin-one-vue-tailwind.

vikdiesel avatar vikdiesel commented on June 29, 2024

Set all lg modifiers as default in src/css/_table.css

table {
  @apply w-full;
}

thead {
  @apply table-header-group;
}

tr {
  @apply max-w-full block relative border-gray-100
    border-b-0 dark:border-slate-800;
}

tr:last-child {
  @apply border-b-0;
}

td:not(:first-child) {
  @apply border-l border-t-0 border-r-0 border-b-0 border-gray-100 dark:border-slate-700;
}

th {
  @apply text-left p-3;
}

td {
  @apply text-left p-3 align-middle;
}

td:last-child {
  @apply border-b-0;
}

tbody tr, tbody tr:nth-child(odd) {
  @apply hover:bg-gray-100 dark:hover:bg-slate-700/70;
}

tbody tr:nth-child(odd) {
  @apply bg-gray-50 dark:bg-slate-800;
}

Additionally, I'd recommend to wrap a table in container with overflow-x-scroll

from admin-one-vue-tailwind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.