Created
December 2, 2022 16:51
-
-
Save JulaineScott/ce860aa7a81b639507378cf02429f66e to your computer and use it in GitHub Desktop.
Blue Sheet boxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Format the classes as boxes | |
* when showing code structure | |
* | |
* @return string | |
*/ | |
public static function blueSheet(): string | |
{ | |
return <<<HEREDOC | |
<style> | |
.blue { | |
position: relative; | |
width: 18%; | |
padding: 1.5em 0.5em; | |
margin: 1%; | |
background: white; | |
overflow: hidden; | |
text-align: center; | |
float: left; | |
} | |
.blue:before { | |
content: ""; | |
position: absolute; | |
top: 0; | |
right: 0; | |
width: 0; | |
height: 0; | |
border-bottom: 16px solid #fff; | |
border-right: 16px solid #F1F3F6; | |
-webkit-box-shadow: -1px 1px 1px rgba(0,0,0,0.3); | |
-moz-box-shadow: -1px 1px 1px rgba(0,0,0,0.3); | |
box-shadow: -1px 1px 1px rgba(0,0,0,0.3); | |
} | |
@media print { | |
.blue { | |
border: thin solid #999; | |
} | |
} | |
</style> | |
HEREDOC; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removed from Components as I no longer generate these pages.