Logic gates with Mosfets and Transistors
I learned these with a book called "TTL Cookbook".  It is pretty dated, and uses BJTs.  You might search for a "CMOS Cookbook" which will use MOSFETS for the same circuits.