Skip to content

Instantly share code, notes, and snippets.

@hlashbrooke
Last active September 5, 2023 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hlashbrooke/15c870b022a3bc1b4bff0e091e6b478d to your computer and use it in GitHub Desktop.
Save hlashbrooke/15c870b022a3bc1b4bff0e091e6b478d to your computer and use it in GitHub Desktop.
CSS for a responsive 2-column layout in the TTRPG Roll Tables WordPress plugin: https://hlashbrooke.itch.io/ttrpg-roll-tables-wordpress-plugin
#rolltable-data-tables, .rolltable_tables {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
gap: 0.5em;
}
.rolltable_data_block {
flex: 0 0 45%;
min-width: 450px;
text-align: center;
border: 1px dashed;
border-radius: 10px;
padding: 0 1em;
}
.rolltable_data_block h3 {
margin-bottom: 0;
}
.rolltable_data_block .rolltable_description {
line-height: 1.5;
font-style: italic;
font-size: 80%;
opacity: 0.6;
}
.rolltable_data_block .rolltable_result_output {
padding-top: 1em;
padding-bottom: 1em;
font-weight: normal;
}
.rolltable_data_block .rolltable_result_output span {
padding: 0;
}
.rolltable_button {
border-radius: 40px;
margin-bottom: 2em;
}
.rolltable_button img {
vertical-align: middle;
height: 2em;
padding: 0 20px 0 0;
}
.rolltable_button span {
padding: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment