Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kamaroly/8a0e8950e684bf6d46fa04e84eb37684 to your computer and use it in GitHub Desktop.
Save kamaroly/8a0e8950e684bf6d46fa04e84eb37684 to your computer and use it in GitHub Desktop.
PyroCMS sortable list styles. Because I keep forgetting the best way to get the sortable list to look/work nice.
.ui-sortable-container {
overflow: auto;
-ms-overflow-x: hidden;
overflow-x: hidden;
}
.ui-sortable {
margin: 0;
list-style: none;
}
.ui-sortable li {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 10px;
margin: 0;
background-color: #f0f0f0;
border: 1px solid #ddd;
margin-bottom: 5px;
text-shadow: 0 1px 0 white;
border-radius: 4px;
-webkit-box-shadow: 0 0 0 rgba(0,0,0,0);
box-shadow: 0 0 0 rgba(0,0,0,0);
-webkit-transition: box-shadow 0.4s ease;
-moz-transition: box-shadow 0.4s ease;
-o-transition: box-shadow 0.4s ease;
-ms-transition: box-shadow 0.4s ease;
transition: box-shadow 0.4s ease;
}
.ui-sortable li:hover {
cursor: move;
}
.ui-sortable li.ui-sortable-placeholder {
border: 3px dashed #e0e0e0;
height: 14px;
visibility: visible !important;
}
.ui-sortable li.ui-sortable-helper {
top: 0;
position: absolute;
-webkit-box-shadow: 4px 4px 10px rgba(0,0,0,0.4);
box-shadow: 4px 4px 10px rgba(0,0,0,0.4);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment