Skip to content

Commit

Permalink
feat: adopt Figma's cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 7, 2021
1 parent fcc06ab commit 5c45247
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,8 @@ body {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACHSURBVHgB7ddRCgIhFIbRa8wK3EH731OtQLdQCIUPDUP2IDidA4Lov4EvAoC11Frv7dhHXAIAAGAOLdZpMQAAYBYt1mkxAABgFi3WaTEAAOBHpZTUzt7ftvf47pKc8zW+sPo+pXR7XT/2W9A8AgAA/t5RW43uT9liR201uj9ri422lRYDWNETCUrqfCW92rQAAAAASUVORK5CYII=)
repeat;
}

/* Brings in Figma's cursor - not sure if this is legal? */
body {
cursor: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4Ij48aW1hZ2UgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFFQUFBQUJBQ0FZQUFBQ3FhWEhlQUFBSWUwbEVRVlI0WHUxYUMweFUyUm4rYloxV1hSM2NBVXdSeFJDVmxBUWNCOUZFcGI2eUEwYU5CSU94eGtnd1BvaXlXb0oyalZGRTBhUUdWdDRGU3RHczZDYXVUb250dEtHTHhGbVFRTllIS0pObEYwWUlwSVRIekE0T1hZWnBIVm1hNythZTZaWEtQQkJtTG5WT2NqS1BlKzdqLzg3M2YrZi8vM05uME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lJuNExnS2dMQkU5cUZhcmQ2elk4ZU90T0hoNGI3RXhNUlA3dDY5KzRJM1h2VFVueWdBVEFpUkYvaWNPblVxUENzcnE2SzZ1dnBUcFZMNUo5N2ZZYnpvcVQ5UkFGaG15TDAzZ0Q0NE9QaTVqNC9QUVg2Tlo1bWNhRlYvckM2NDZnSXNNMFJZakQ1Ym85RkViOTY4R1drZnkraXczaVB4RWFYcVR3WUE3UFVaQ0NKV0JRUklVSGdvdlREQm1mVHFqVE9xN3VxWWlUQUFPc0M5UWNZYmowOFlLOHppUkJmd2pBZk1SQUJnNlRHQTRONGxGTHdnSll6eFhaME1qNHlmS0FCNFdKekx1akNwRVdYQU05a004TWhzVGNWTjM0VUJVL0U4YnIrbUZ3QzNReTZ5RzNvWklMSUpjZnZqZUJuZ2RzaEZka012QTBRMklXNS9IQzhEM0E2NXlHN29aWURJSnNUdGovTWZQWHBhYnZDdDliMEFBQUFBU1VWT1JLNUNZSUk9IiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiLz48L3N2Zz4=)4 4,auto !important;
}
5 changes: 3 additions & 2 deletions src/_views.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@
width: var(--ct-sidebar-padding);
touch-action: none;
z-index: 2000;
opacity: 0.4;
opacity: 1;
transition: background-color 0.2s 0.1s;
}

.cp__right-sidebar-inner .resizer:hover {
opacity: 1;
background: var(--ct-sidebar-resizer-background-hover);
opacity: 0.6;
}

.cp__right-sidebar,
Expand Down

0 comments on commit 5c45247

Please sign in to comment.