Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Last active December 28, 2016 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save james2doyle/5090997 to your computer and use it in GitHub Desktop.
Save james2doyle/5090997 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