github.com/onsi/gomega@v1.32.0/docs/css/layout.css (about)

     1  :root {
     2  	--max-width: 1024px;
     3  	--header-height: 50px;
     4  	--breakpoint: 640px;
     5  	--gomega-blue: #2d6cad;
     6  	--gomega-blue-darker: #0d5c8d;
     7  	--gomega-blue-faint: #fafaff;
     8  }
     9  
    10  body {
    11      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    12      font-size: 14px;
    13  	margin: 0;
    14  }
    15  
    16  #header {
    17  	background-color: var(--gomega-blue);
    18  	color: #fff;
    19  	border-bottom: solid 1px var(--gomega-blue-darker);
    20  }
    21  
    22  #left-background, #right-background {
    23  	height: 100vh;
    24  	background-color: var(--gomega-blue-faint);
    25  }
    26  
    27  #left-background {
    28  	box-shadow: inset -2px 0 7px -5px var(--gomega-blue-darker);
    29  }
    30  
    31  #right-background {
    32  	box-shadow: inset 2px 0 7px -5px var(--gomega-blue-darker);
    33  }
    34  
    35  #content {
    36  	background-color: #fff;
    37  	overflow-y: scroll;
    38  	padding: 5px;
    39  	padding-right:10px;
    40  }
    41  
    42  #sidebar {
    43  	background-color: #fff;
    44  	overflow-y: scroll;
    45  	padding:5px;
    46  	position:relative;
    47      font-size: 16px;
    48  }
    49  
    50  #mask {
    51  	display:none;
    52  }
    53  
    54  img[alt="Ginkgo"] {
    55  	max-width: 80%;
    56  	max-height: 200px;
    57  	display: block;
    58  	margin-left: auto;
    59  	margin-right: auto;
    60  }
    61  
    62  img[alt="Leakiee"] {
    63  	max-width: 80%;
    64  	max-height: 150px;
    65  	display: block;
    66  	float: right;
    67  }
    68  
    69  /* code styling */
    70  
    71  .markdown-body div.highlight {
    72  	margin-left: 20px;
    73  	margin-right: 20px;
    74  	border-radius: 10px;
    75  	margin-bottom: 16px !important;
    76  	max-width: 800px;
    77  	border: solid 2px #f0f0f0;
    78  }
    79  
    80  .markdown-body .highlight pre, .markdown-body pre {
    81  	background-color: transparent;
    82  }
    83  
    84  div.highlight.invalid {
    85  	border: solid 2px #f0aaaa;
    86  	background-color: #f0dddd;
    87  }
    88  
    89  /* sidebar items */
    90  
    91  .sidebar-heading, .sidebar-item {
    92  	display:block;
    93  	text-decoration: none;
    94  	color: #000;
    95  }
    96  
    97  .sidebar-heading {
    98  	margin:5px 5px;
    99  	padding:3px 0;
   100  }
   101  
   102  .sidebar-heading.active {
   103  	font-weight:bold;
   104  	color:  var(--gomega-blue);
   105  }
   106  
   107  .sidebar-item {
   108  	font-size: 0.8rem;
   109  	margin: 5px 0 5px 10px;
   110  }
   111  
   112  .sidebar-item:nth-child(2n+1) {
   113  	color:#555;
   114  }
   115  
   116  .sidebar-item.active {
   117  	font-weight:bold;	
   118  	color:  var(--gomega-blue);
   119  }
   120  
   121  .sidebar-section {
   122  	overflow: hidden;
   123  	max-height: 0;
   124  	// transition: max-height 0.3s;
   125  }
   126  
   127  .sidebar-heading.active + .sidebar-section {
   128  	max-height: 1000px;    
   129  }
   130  
   131  /* header */
   132  
   133  #header {
   134  	display: flex;
   135  	align-items: center;
   136  }
   137  
   138  .brand {
   139  	font-size: 1.8rem;
   140  	margin-left:10px;
   141  	font-weight: bold;
   142  	text-decoration: none;
   143  	color: #fff;
   144  }
   145  
   146  .spacer {
   147  	flex: 1;
   148  }
   149  
   150  .logo {
   151  	max-height: 22px;
   152  	margin: 0 5px;
   153  }
   154  
   155  a:last-of-type .logo {
   156  	margin-right: 10px;
   157  }
   158  
   159  #disclosure {
   160  	box-sizing: border-box;
   161  	width: var(--header-height);
   162  	height: var(--header-height);
   163  
   164  	display: flex;
   165  	flex-direction: column;
   166  	align-items: center;
   167  	justify-content: space-around;
   168  	padding: 12px 0;
   169  	cursor: pointer;
   170  }
   171  
   172  .hamburger-slice {
   173  	width: calc(var(--header-height) - 20px);
   174  	height: 2px;
   175  	border-radius: 4px;
   176  	background-color: #fff;
   177  }
   178  
   179  /* content styling */
   180  
   181  #content h2 {
   182  	border-bottom: none;
   183  }
   184  
   185  /* Desktop */
   186  @media screen and (min-width: 640px) {
   187  	#container {
   188  		--sidebar-width: 200px;
   189  
   190  		display: grid;
   191  		grid-template-areas: "left-background header header right-background"
   192  							 "left-background sidebar content right-background";
   193  		grid-template-columns: 1fr var(--sidebar-width) minmax(calc(var(--breakpoint) - var(--sidebar-width)), var(--max-width)) 1fr;
   194  		grid-template-rows: var(--header-height) auto;
   195  		gap: 0;
   196  
   197  		height:100vh;
   198  	}	
   199  
   200  	#left-background {
   201  		grid-area; left-background;
   202  	}
   203  
   204  	#right-background {
   205  		grid-area; right-background;
   206  	}
   207  
   208  	#header {
   209  		grid-area: header;
   210  	}
   211  
   212  	#sidebar {
   213  		grid-area: sidebar;
   214  		border-right: 5px solid #fff;
   215  	}
   216  
   217  	#content {
   218  		grid-area: content;
   219  	}
   220  
   221  	#disclosure {
   222  		display: none;
   223  	}
   224  }
   225  
   226  /* Mobile */
   227  @media screen and (max-width: 640px) {
   228  	#container {
   229  		--sidebar-width: 300px;
   230  
   231  		display: grid;
   232  		grid-template-areas: "header"
   233  							 "content";
   234  		grid-template-columns: 1fr;
   235  		grid-template-rows: var(--header-height) auto;
   236  		gap: 0;
   237  
   238  		height:100vh;
   239  	}	
   240  
   241  	#header {
   242  		grid-area: header;
   243  	}
   244  
   245  	#content {
   246  		grid-area: content;
   247  	}
   248  
   249  	#left-background {
   250  		display: none;
   251  	}
   252  
   253  	#right-background {
   254  		display: none;
   255  	}
   256  
   257  	#sidebar {
   258  		position: fixed;
   259  		width: var(--sidebar-width);
   260  		top: var(--header-height);
   261  		bottom: 0px;
   262  		right: calc(-5px - var(--sidebar-width));
   263  		z-index:2;		
   264  		transition: right 0.3s; 
   265  	}
   266  
   267  	#mask {
   268  		background-color: rgba(0,0,0,0);		
   269  		position: fixed;
   270  		width: 100vw;
   271  		top: var(--header-height);
   272  		bottom: 0px;
   273  		left:0px;
   274  		z-index:1;	
   275  		cursor: pointer;	
   276  		transition: background-color 0.3s; 
   277  	}
   278  
   279  	#container.reveal-sidebar #sidebar {
   280  		right: 0px;
   281  	}
   282  
   283  	#container.reveal-sidebar #mask {
   284  		display:block;
   285  		background-color: rgba(0,0,0,0.2);		
   286  	}
   287  
   288  	.hamburger-slice {
   289  		transition: transform 0.3s, opacity 0.1s;
   290  	}
   291  
   292  	#container .hamburger-slice:nth-child(1) {
   293  		transform: rotate(0deg);
   294  		transform-origin: top left;
   295  	}
   296  
   297  	#container .hamburger-slice:nth-child(2) {
   298  		opacity: 100;
   299  	}
   300  
   301  	#container .hamburger-slice:nth-child(3) {
   302  		transform: rotate(0deg);
   303  		transform-origin: bottom left;
   304  	}
   305  
   306  
   307  	#container.reveal-sidebar .hamburger-slice:nth-child(1) {
   308  		transform: rotate(35deg);
   309  	}
   310  
   311  	#container.reveal-sidebar .hamburger-slice:nth-child(2) {
   312  		opacity: 0;
   313  	}
   314  
   315  	#container.reveal-sidebar .hamburger-slice:nth-child(3) {
   316  		transform: rotate(-35deg);
   317  	}
   318  }
   319  
   320  /* Print */
   321  @media print {
   322  	body {
   323  		font-size: 10pt;
   324  		margin:  0.25in;
   325  		background-image: none;
   326  	}
   327  	#header {
   328  		display:  none;
   329  	}	
   330  	#sidebar {
   331  		display: none;
   332  	}
   333  	#left-background {
   334  		display:  none;
   335  	}
   336  	#right-background {
   337  		display:  none;
   338  	}
   339  
   340  	h2 {
   341  		break-before:  page;
   342  	}
   343  
   344  	.highlight {
   345  		break-inside: avoid-page;
   346  	}
   347  }