Skip to content

Commit 74a75fd

Browse files
committed
#103 Tutorial bubble styles
1 parent 4e41435 commit 74a75fd

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

webapp/css/netpyne.less

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,3 +618,55 @@ body {
618618
}
619619
}
620620
}
621+
622+
.tutorials {
623+
&_highlight {
624+
position: absolute;
625+
border-radius: 0.25rem;
626+
pointer-events: none;
627+
border: solid 0.125rem;
628+
z-index: 1501; // Just over the menus items (1500)
629+
}
630+
631+
&_wrapper {
632+
position: relative;
633+
}
634+
635+
&_content {
636+
position: absolute;
637+
background: @bgRegular;
638+
box-shadow: @tutorialShadow;
639+
backdrop-filter: blur(1.25rem);
640+
border-radius: 0.25rem;
641+
padding: 1.25rem;
642+
width: 25rem;
643+
z-index: 1501; // Just over the menus items (1500)
644+
645+
h3 {
646+
margin: 0 0 0.75rem;
647+
font-weight: 600;
648+
font-size: 1.25rem;
649+
line-height: 1.5rem;
650+
color: @textColor;
651+
}
652+
653+
p {
654+
font-weight: 400;
655+
font-size: 1rem;
656+
margin: 0;
657+
line-height: 1.5rem;
658+
color: rgba(@textColor, 0.8);
659+
660+
& + p {
661+
margin-top: 0.5rem;
662+
}
663+
}
664+
665+
.MuiButton-root {
666+
font-weight: 600;
667+
&:not(:first-child) {
668+
margin-left: 0.5rem;
669+
}
670+
}
671+
}
672+
}

webapp/css/variables.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@
3838
@fabDisableColor: rgba(255, 255, 255, 0.3);
3939
@navShadow: rgba(255, 255, 255, 0.2);
4040
@tabsTextColor: rgba(255, 255, 255, 0.7);
41+
@tutorialShadow: 0px 10px 60px rgba(0, 0, 0, 0.5);

0 commit comments

Comments
 (0)