Skip to content

Instantly share code, notes, and snippets.

View bloggrammer's full-sized avatar
💭
Ready to collaborate.

John Ansa bloggrammer

💭
Ready to collaborate.
View GitHub Profile
@bloggrammer
bloggrammer / style.md
Created August 22, 2024 07:16
CSS Styling

Apple Scrollbar

To style an HTML scrollbar like Apple's scrollbar, you can use CSS. Here's an example: CSS.

This CSS targets WebKit browsers (like Safari and Chrome) and styles the scrollbar with a similar look and feel to Apple's scrollbar.

Note that this won't work in non-WebKit browsers like Firefox.

::-webkit-scrollbar {
@bloggrammer
bloggrammer / ItemsControlWithScrollViewer.xaml
Created April 30, 2022 12:18 — forked from punker76/ItemsControlWithScrollViewer.xaml
ItemsControl with ScrollViewer inside Template
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dd="urn:gong-wpf-dragdrop">
<Grid>
<ItemsControl x:Name="pnlBilder"
HorizontalAlignment="Center"
Width="300" Height="100"
dd:DragDrop.IsDragSource="True"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
@bloggrammer
bloggrammer / MinimalAPIs.md
Created December 9, 2021 23:42 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance