Skip to content

Instantly share code, notes, and snippets.

@JulaineScott
Created December 2, 2022 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulaineScott/ce860aa7a81b639507378cf02429f66e to your computer and use it in GitHub Desktop.
Save JulaineScott/ce860aa7a81b639507378cf02429f66e to your computer and use it in GitHub Desktop.
Blue Sheet boxes
/**
* 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;
}
@JulaineScott
Copy link
Author

Removed from Components as I no longer generate these pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment