github.com/onsi/ginkgo@v1.16.6-0.20211118180735-4e1925ba4c95/docs/css/layout.css (about)

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